summaryrefslogtreecommitdiff
path: root/src/ivysocket.c
diff options
context:
space:
mode:
authorchatty1998-12-22 10:16:42 +0000
committerchatty1998-12-22 10:16:42 +0000
commit5203ffb335095327793b3b2d6bdadfb657fda52a (patch)
tree9715603633a9665d935a3ac5b7bb56d41c10509f /src/ivysocket.c
parentc86c53b326d5f35a6ad205720fcae9b1c0e1e8ff (diff)
downloadivy-c-5203ffb335095327793b3b2d6bdadfb657fda52a.zip
ivy-c-5203ffb335095327793b3b2d6bdadfb657fda52a.tar.gz
ivy-c-5203ffb335095327793b3b2d6bdadfb657fda52a.tar.bz2
ivy-c-5203ffb335095327793b3b2d6bdadfb657fda52a.tar.xz
Mise au propre
Diffstat (limited to 'src/ivysocket.c')
-rw-r--r--src/ivysocket.c16
1 files changed, 16 insertions, 0 deletions
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 <windows.h>
#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 );
}
+