6 * "Hello world" TCP protocol
14 HELLO_SENDING_MESSAGE = 1,
19 * A "hello world" request
22 struct hello_request {
23 /** TCP connection for this request */
24 struct tcp_connection tcp;
26 enum hello_state state;
27 /** Message to be transmitted */
29 /** Amount of message remaining to be transmitted */
33 * @v data Received data
34 * @v len Length of received data
36 * This function is called for all data received from the
39 void ( *callback ) ( char *data, size_t len );
40 /** Connection complete indicator */
44 extern int hello_connect ( struct hello_request *hello );