diff options
Diffstat (limited to 'src/bussocket.h')
-rw-r--r-- | src/bussocket.h | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/src/bussocket.h b/src/bussocket.h index b40571f..956aa1a 100644 --- a/src/bussocket.h +++ b/src/bussocket.h @@ -1,5 +1,5 @@ -#ifndef _SOCKET_H -#define _SOCKET_H +#ifndef _BUSSOCKET_H +#define _BUSSOCKET_H #ifdef __cplusplus extern "C" { @@ -17,24 +17,13 @@ extern "C" { #include <netinet/in.h> #endif -typedef struct _channel *Channel; - -extern void ChannelInit(void); -extern void ChannelStop(void); -extern void ChannelMainLoop(void(*hook)(void) ); -extern Channel ChannelSetUp( - HANDLE fd, - void *data, - void (*handle_delete)( void *data ), - void (*handle_read)( Channel channel, HANDLE fd, void *data) - ); - -extern void ChannelClose( Channel channel ); /* Server Part */ typedef struct _client *Client; typedef void (*SocketInterpretation)( Client client, void *data, char *ligne); +extern void SocketInit(); + extern void SocketClose( Client client ); extern void SocketSend( Client client, char *fmt, ... ); extern void SocketSendRaw( Client client, char *buffer, int len ); @@ -76,11 +65,6 @@ extern void SocketGetRemote( Client client, char **host, unsigned short *port ); /* emmission d'un broadcast UDP */ extern void SocketSendBroadcast( Client client, unsigned long host, unsigned short port, char *fmt, ... ); -#ifdef XTMAINLOOP -#include <X11/Intrinsic.h> -extern void SetSocketAppContext( XtAppContext cntx ); -#endif - #ifdef __cplusplus } #endif |