diff options
author | fcolin | 2005-07-13 11:27:40 +0000 |
---|---|---|
committer | fcolin | 2005-07-13 11:27:40 +0000 |
commit | a68db8d4f235c2ea59aea9cf7311474ac85f5124 (patch) | |
tree | e3189d4b3b59da02db394225f2814dadd85871e2 /src/ivysocket.h | |
parent | ab7132a03e9be01340c04d228731372ff40ddf16 (diff) | |
download | ivy-c-a68db8d4f235c2ea59aea9cf7311474ac85f5124.zip ivy-c-a68db8d4f235c2ea59aea9cf7311474ac85f5124.tar.gz ivy-c-a68db8d4f235c2ea59aea9cf7311474ac85f5124.tar.bz2 ivy-c-a68db8d4f235c2ea59aea9cf7311474ac85f5124.tar.xz |
menage dans ivysocket
Diffstat (limited to 'src/ivysocket.h')
-rw-r--r-- | src/ivysocket.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ivysocket.h b/src/ivysocket.h index 9bfb17f..3d8c991 100644 --- a/src/ivysocket.h +++ b/src/ivysocket.h @@ -53,7 +53,7 @@ extern int make_message_var(char ** buffer, int *size, int offset, const char * /* Forward def */ typedef struct _client *Client; -typedef char* (*SocketInterpretation) (Client client, void *data, char *ligne, unsigned long len); +typedef char* (*SocketInterpretation) (Client client, void *data, char *ligne, unsigned int len); typedef void* (*SocketCreate) (Client client); typedef void (*SocketDelete) (Client client, void *data); @@ -74,7 +74,7 @@ extern void SocketSendRaw( Client client, char *buffer, int len ); extern char *SocketGetPeerHost( Client client ); extern void SocketSetData( Client client, void *data ); extern void *SocketGetData( Client client ); -extern void SocketBroadcast( char *fmt, ... ); +extern void SocketSendToAll( char *fmt, ... ); extern Client SocketConnect( char * host, unsigned short port, void *data, SocketInterpretation interpretation, @@ -101,6 +101,7 @@ extern struct in_addr * SocketGetRemoteAddr( Client client ); extern void SocketGetRemoteHost (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, ... ); +extern void SocketSendBroadcastRaw( Client client, unsigned long host, unsigned short port, char *buffer, int len ); #ifdef __cplusplus } |