summaryrefslogtreecommitdiff
path: root/src/bussocket.h
diff options
context:
space:
mode:
authorfcolin1998-08-03 12:58:41 +0000
committerfcolin1998-08-03 12:58:41 +0000
commitb8dda6ecdfc747d561d170bd3d8512dc6914d238 (patch)
treea0f1945c3dfc309d0eb75ea7d7449a5b90e50632 /src/bussocket.h
parentf8e8025b75c0a4588849843853b72a3039bdb7f6 (diff)
downloadivy-c-b8dda6ecdfc747d561d170bd3d8512dc6914d238.zip
ivy-c-b8dda6ecdfc747d561d170bd3d8512dc6914d238.tar.gz
ivy-c-b8dda6ecdfc747d561d170bd3d8512dc6914d238.tar.bz2
ivy-c-b8dda6ecdfc747d561d170bd3d8512dc6914d238.tar.xz
eclatement de bussocket pour permettre la creation
de mainloop externe autre que XT et Interne buschannel.h devient l'interface avec la gestion MainLoop busxtloop.[ch] MainLoop Style XT busloop.[ch] MainLoop Interne basee sur select
Diffstat (limited to 'src/bussocket.h')
-rw-r--r--src/bussocket.h24
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