From 5203ffb335095327793b3b2d6bdadfb657fda52a Mon Sep 17 00:00:00 2001 From: chatty Date: Tue, 22 Dec 1998 10:16:42 +0000 Subject: Mise au propre --- src/ivysocket.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/ivysocket.c') diff --git a/src/ivysocket.c b/src/ivysocket.c index 131813d..c785de2 100644 --- a/src/ivysocket.c +++ b/src/ivysocket.c @@ -1,3 +1,16 @@ +/* + * + * Ivy, C interface + * + * Copyright 1997-1998 + * Centre d'Etudes de la Navigation Aerienne + * + * Sockets + * + * $Id$ + * + */ + #ifdef WIN32 #include #endif @@ -142,6 +155,7 @@ static void HandleSocket( Channel channel, HANDLE fd, void *data) client->ptr = client->buffer; } } + static void HandleServer(Channel channel, HANDLE fd, void *data) { Server server = ( Server ) data; @@ -172,6 +186,7 @@ static void HandleServer(Channel channel, HANDLE fd, void *data) client->data = (*server->create)( client ); } + Server SocketServer(unsigned short port, void*(*create)(Client client), void(*handle_delete)(Client client, void *data), @@ -527,3 +542,4 @@ void SocketSendBroadcast( Client client, unsigned long host, unsigned short port perror( "*** send ***"); } va_end ( ap ); } + -- cgit v1.1