From c676591cd12dd6b0fb28ee75edd7d52e8420b372 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 15 Jan 2007 09:06:12 +0000 Subject: Unmaintained example code is probably worse than useless. --- src/include/gpxe/hello.h | 52 ------------------------------------------------ 1 file changed, 52 deletions(-) delete mode 100644 src/include/gpxe/hello.h (limited to 'src/include') 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 -#include -#include - -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 -- cgit v1.2.3-55-g7522