hammer2 - Early messaging infrastructure
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 13 Apr 2012 02:43:31 +0000 (19:43 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 13 Apr 2012 02:43:31 +0000 (19:43 -0700)
commit9ab151060e2f1c692b923228536bcdcd76b56603
treecd2d6297acf06f611870344f138bdb7a10bf0cb7
parent397da462d24d72415137eeafd83598102f20aa17
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.
sbin/hammer2/Makefile
sbin/hammer2/cmd_debug.c [new file with mode: 0644]
sbin/hammer2/cmd_leaf.c [new file with mode: 0644]
sbin/hammer2/cmd_node.c [new file with mode: 0644]
sbin/hammer2/hammer2.h
sbin/hammer2/icrc.c [new file with mode: 0644]
sbin/hammer2/main.c
sbin/hammer2/msg.c [new file with mode: 0644]
sbin/hammer2/network.h [new file with mode: 0644]
sbin/hammer2/subs.c
sys/vfs/hammer2/hammer2_network.h [new file with mode: 0644]