diff options
| author | Michael Brown | 2007-01-15 10:06:12 +0100 |
|---|---|---|
| committer | Michael Brown | 2007-01-15 10:06:12 +0100 |
| commit | c676591cd12dd6b0fb28ee75edd7d52e8420b372 (patch) | |
| tree | b3d5158fad839480267b92b74eb2b8c867064ac7 /src/include | |
| parent | Gave asynchronous operations approximate POSIX signal semantics. This (diff) | |
| download | ipxe-c676591cd12dd6b0fb28ee75edd7d52e8420b372.tar.gz ipxe-c676591cd12dd6b0fb28ee75edd7d52e8420b372.tar.xz ipxe-c676591cd12dd6b0fb28ee75edd7d52e8420b372.zip | |
Unmaintained example code is probably worse than useless.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/gpxe/hello.h | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/src/include/gpxe/hello.h b/src/include/gpxe/hello.h deleted file mode 100644 index 31e035cd7..000000000 --- a/src/include/gpxe/hello.h +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef _GPXE_HELLO_H -#define _GPXE_HELLO_H - -/** @file - * - * "Hello world" TCP protocol - * - */ - -#include <stdint.h> -#include <gpxe/tcp.h> -#include <gpxe/async.h> - -enum hello_state { - HELLO_SENDING_MESSAGE = 1, - HELLO_SENDING_ENDL, -}; - -/** - * A "hello world" request - * - */ -struct hello_request { - /** Server to connect to */ - struct sockaddr_tcpip server; - /** Message to be transmitted */ - const char *message; - /** Callback function - * - * @v data Received data - * @v len Length of received data - * - * This function is called for all data received from the - * remote server. - */ - void ( *callback ) ( char *data, size_t len ); - - /** Current state */ - enum hello_state state; - /** Amount of message remaining to be transmitted */ - size_t remaining; - - /** TCP application for this request */ - struct tcp_application tcp; - - /** Asynchronous operation */ - struct async async; -}; - -extern struct async_operation * say_hello ( struct hello_request *hello ); - -#endif |
