DragonFly BSD
DragonFly commits List (threaded) for 2012-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: hammer2 hammer2 - Early messaging infrastructure


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 12 Apr 2012 19:50:07 -0700 (PDT)

commit 9ab151060e2f1c692b923228536bcdcd76b56603
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Thu Apr 12 19:43:31 2012 -0700

    hammer2 - Early messaging infrastructure
    
    * Implement the core message read/write loop, using poll() and
      non-blocking I/O.  This code can also handle a auxillary events from
      a pipe or tty.
    
      The initial implementation is very simple and does not yet do message
      tracking and recording.
    
    * Implement piecemeal message parsing and sanity/crc checks.
    
    * Implement piecemeal message generation.
    
    * Implement simple debug messaging for testing and future debugging.
    
      Debug commands and messages use link-local messages (source=0, target=0),
      in one-way mode (msgid=0), so they're trivial to formulate.
    
      hammer2 -d node	(run master listener in debug mode)
      hammer2 debug		(in another xterm connect to it)
    
      Debug messages are really simple, sending a debug command sends a
      line buffer, and the replies contain buffers to write to stdout.
    
      The target node is responsible for providing the prompt, so we have
      positive feedback that the debug stream is working.

Summary of changes:
 sbin/hammer2/Makefile             |    5 +-
 sbin/hammer2/cmd_debug.c          |  238 ++++++++++
 sbin/hammer2/cmd_leaf.c           |  130 ++++++
 sbin/hammer2/cmd_node.c           |  214 +++++++++
 sbin/hammer2/hammer2.h            |   43 ++-
 sbin/hammer2/icrc.c               |  147 +++++++
 sbin/hammer2/main.c               |   43 ++-
 sbin/hammer2/msg.c                |  877 +++++++++++++++++++++++++++++++++++++
 sbin/hammer2/network.h            |  234 ++++++++++
 sbin/hammer2/subs.c               |   28 ++-
 sys/vfs/hammer2/hammer2_network.h |  457 +++++++++++++++++++
 11 files changed, 2403 insertions(+), 13 deletions(-)
 create mode 100644 sbin/hammer2/cmd_debug.c
 create mode 100644 sbin/hammer2/cmd_leaf.c
 create mode 100644 sbin/hammer2/cmd_node.c
 create mode 100644 sbin/hammer2/icrc.c
 create mode 100644 sbin/hammer2/msg.c
 create mode 100644 sbin/hammer2/network.h
 create mode 100644 sys/vfs/hammer2/hammer2_network.h

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9ab151060e2f1c692b923228536bcdcd76b56603


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]