summaryrefslogtreecommitdiff
path: root/src/ivysocket.h
diff options
context:
space:
mode:
authorsc1999-01-26 08:53:25 +0000
committersc1999-01-26 08:53:25 +0000
commitbc141af57a9ea4b5da4a15eea73e5e4269fc7e65 (patch)
tree53654c22e322e346402b09c8ee804220b8acb1bd /src/ivysocket.h
parent4853dbf7e1e3d69064f6af735acc802b5971b5f5 (diff)
downloadivy-c-bc141af57a9ea4b5da4a15eea73e5e4269fc7e65.zip
ivy-c-bc141af57a9ea4b5da4a15eea73e5e4269fc7e65.tar.gz
ivy-c-bc141af57a9ea4b5da4a15eea73e5e4269fc7e65.tar.bz2
ivy-c-bc141af57a9ea4b5da4a15eea73e5e4269fc7e65.tar.xz
A bit of clean up in headers
Changes in IvyStart and IvyInit: - expanded parsing of IvyStart argument to bus addresses like 123.123,123.122:2019 - socket for receiving broadcast handshakes is now in IvyStart (we thus lose the ability to have "passive" agents (agents that listen but don't say hello))
Diffstat (limited to 'src/ivysocket.h')
-rw-r--r--src/ivysocket.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/ivysocket.h b/src/ivysocket.h
index 04a8b28..6f59a0c 100644
--- a/src/ivysocket.h
+++ b/src/ivysocket.h
@@ -1,22 +1,21 @@
/*
* Ivy, C interface
*
- * Copyright (C) 1997-1999
- * Centre d'Études de la Navigation Aérienne
+ * Copyright 1997-1999
+ * Centre d'Etudes de la Navigation Aerienne
*
- * Sockets
+ * Sockets
*
- * Authors: François-Régis Colin <colin@cenatoulouse.dgac.fr>
- * Stéphane Chatty <chatty@cenatoulouse.dgac.fr>
+ * Authors: Francois-Regis Colin <fcolin@cenatoulouse.dgac.fr>
*
* $Id$
- *
- * Please refer to file version.h for the
- * copyright notice regarding this software
*
+ * Please refer to file version.h for the
+ * copyright notice regarding this software
*/
-#ifndef _IVYSOCKET_H
-#define _IVYSOCKET_H
+
+#ifndef IVYSOCKET_H
+#define IVYSOCKET_H
#ifdef __cplusplus
extern "C" {
@@ -39,7 +38,7 @@ extern void SocketInit();
/* Forward def */
typedef struct _client *Client;
-typedef void (*SocketInterpretation)( Client client, void *data, char *ligne);
+typedef void (*SocketInterpretation) (Client client, void *data, char *ligne);
/* Server Part */
typedef struct _server *Server;
@@ -81,7 +80,7 @@ extern Client SocketBroadcastCreate(
);
/* recuperation de l'emetteur du message */
extern struct in_addr * SocketGetRemoteAddr( Client client );
-extern void SocketGetRemote( Client client, char **host, unsigned short *port );
+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, ... );