add some comments

This commit is contained in:
Stefan Lankes 2011-09-16 20:49:13 +02:00
parent ae0042289e
commit 551db98900

View file

@ -24,6 +24,20 @@
#include <metalsvm/syscall.h>
#include <metalsvm/errno.h>
/*
* This implements a netio server.
* The client sends a command word (4 bytes) then a data length word (4 bytes).
* If the command is "receive", the server is to consume "data length" bytes into
* a circular buffer until the first byte is non-zero, then it is to consume
* another command/data pair.
* If the command is "send", the server is to send "data length" bytes from a circular
* buffer with the first byte being zero, until "some time" (6 seconds in the
* current netio131.zip download) has passed and then send one final buffer with
* the first byte being non-zero. Then it is to consume another command/data pair.
*/
/* See http://www.nwlab.net/art/netio/netio.html to get the netio tool */
#ifdef CONFIG_LWIP
#include <lwip/sockets.h>