Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDP sockets support (suite) #53

Open
wants to merge 29 commits into
base: development
Choose a base branch
from
Open

Commits on Nov 6, 2012

  1. Make overlay_mdp_client_socket_path local

    There is no reason for this variable to be external. It is used in init() and
    was used in done(), but the unlink() in done() is useless: it was already called
    on init() so the file was already unlinked.
    rom1v committed Nov 6, 2012
    Configuration menu
    Copy the full SHA
    263232b View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2012

  1. MDP sockets support

    Provide MDP sockets instead of using a global one.
    rom1v committed Nov 7, 2012
    Configuration menu
    Copy the full SHA
    f55e2b7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9d44386 View commit details
    Browse the repository at this point in the history
  3. Remove useless external declaration

    I removed the definition of mdp_client_socket, but an external declaration was
    remaining.
    rom1v committed Nov 7, 2012
    Configuration menu
    Copy the full SHA
    61c35db View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2012

  1. Fix broken dna lookup

    lookup_send_request() must use the socket of the caller, not create a new
    one (detected by dnaprotocol test script).
    rom1v committed Nov 9, 2012
    Configuration menu
    Copy the full SHA
    4b273b4 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2012

  1. Configuration menu
    Copy the full SHA
    f5a6dc7 View commit details
    Browse the repository at this point in the history
  2. overlay_mdp_send must be blocking

    Else, once the buffer is full, we get errno=11
    rom1v committed Nov 16, 2012
    Configuration menu
    Copy the full SHA
    0bfa34d View commit details
    Browse the repository at this point in the history
  3. Native-part of MDP JNI bindings

    rom1v committed Nov 16, 2012
    Configuration menu
    Copy the full SHA
    1b81ad7 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2012

  1. Missing free for a JNI buffer

    ReleaseByteArrayElements last parameter is mode. Its value is:
     - 0: copy back the content and free the buffer;
     - JNI_COMMIT: copy back the content and *do not* free the buffer;
     - JNI_ABORT: free the buffer without copying back the possible changes.
    
     We definitely want 0.
    
     With JNI_COMMIT, after receiving more than ~1024 packets, it crashes:
       ReferenceTable overflow (max=1024)
    rom1v committed Nov 22, 2012
    Configuration menu
    Copy the full SHA
    cf81ee4 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2013

  1. Merge branch 'master' into mdpsock

    Conflicts:
    	commandline.c
    	mdp_client.c
    	serval.h
    	sourcefiles.mk
    rom1v committed Jan 7, 2013
    Configuration menu
    Copy the full SHA
    1e671e6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0fa6f78 View commit details
    Browse the repository at this point in the history
  3. Fix compilation warnings

    (unused, signed/unsigned variables...)
    rom1v committed Jan 7, 2013
    Configuration menu
    Copy the full SHA
    80cb5e2 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2013

  1. Remove question-comment

    Using fd+1 is the right way to use select()
    rom1v committed Jan 8, 2013
    Configuration menu
    Copy the full SHA
    dd1a7c4 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2013

  1. Remove sun_path file on MDP socket close

    Avoid to keep a lot of useless files like:
      var/serval-node/mdp-client-XXXX-XXXXXXXX.socket
    rom1v committed Jan 14, 2013
    Configuration menu
    Copy the full SHA
    92a28a2 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2013

  1. Delete all socket files on servald start

    If serval does not close properly, socket files are kept in
    /data/data/org.servalproject/var/serval-node. Therefore, we need to clean up
    when servald starts.
    rom1v committed Jan 15, 2013
    Configuration menu
    Copy the full SHA
    db2fefc View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2013

  1. Merge branch 'development' into mdpsock

    Conflicts:
    	mdp_client.c
    rom1v committed Feb 7, 2013
    Configuration menu
    Copy the full SHA
    1f4863f View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2013

  1. Add QoS and flags management

    rom1v committed Feb 11, 2013
    Configuration menu
    Copy the full SHA
    8454944 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2013

  1. shutdown() socket instead of close()

    Makes any blocking recv exit
    rom1v committed Feb 21, 2013
    Configuration menu
    Copy the full SHA
    f93642c View commit details
    Browse the repository at this point in the history
  2. Special return code for "socket closed"

    Blocking recv calls return a special return code (-2) for notifying the socket
    is closed (this information is useful for MDP socket users).
    
    This implementation is unsatisfactory: return code should instead be consistent
    with recvfrom(), that is always returning the length of received data (0 for
    socket closed).
    rom1v committed Feb 21, 2013
    Configuration menu
    Copy the full SHA
    8d2ce4b View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2013

  1. Merge branch 'development' into mdpsock

    Conflicts:
    	commandline.c
    	mdp_client.c
    	serval.h
    rom1v committed Mar 6, 2013
    Configuration menu
    Copy the full SHA
    24ca2f4 View commit details
    Browse the repository at this point in the history
  2. mdp_client sid type changed

    rom1v committed Mar 6, 2013
    Configuration menu
    Copy the full SHA
    9be2d1a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8d1fea9 View commit details
    Browse the repository at this point in the history
  4. Use MDP sockets in app_trace

    rom1v committed Mar 6, 2013
    Configuration menu
    Copy the full SHA
    be8b48e View commit details
    Browse the repository at this point in the history
  5. Open MDP sockets as late as possible

    Avoid to open/close it if something goes wrong early.
    rom1v committed Mar 6, 2013
    Configuration menu
    Copy the full SHA
    a9a8b88 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6848279 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2013

  1. Configuration menu
    Copy the full SHA
    69e7f7a View commit details
    Browse the repository at this point in the history

Commits on May 31, 2013

  1. Merge branch 'development' into mdpsock

    Conflicts:
    	commandline.c
    	mdp_client.c
    	serval.h
    rom1v committed May 31, 2013
    Configuration menu
    Copy the full SHA
    0503619 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2013

  1. Merge branch 'development' into mdpsock

    Conflicts:
    	commandline.c
    	mdp_client.c
    	serval.h
    rom1v committed Jul 18, 2013
    Configuration menu
    Copy the full SHA
    6b9ad2b View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2013

  1. Fix compiler warnings

    rom1v committed Jul 20, 2013
    Configuration menu
    Copy the full SHA
    30b8757 View commit details
    Browse the repository at this point in the history