From bc141af57a9ea4b5da4a15eea73e5e4269fc7e65 Mon Sep 17 00:00:00 2001 From: sc Date: Tue, 26 Jan 1999 08:53:25 +0000 Subject: 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)) --- src/ivysocket.h | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'src/ivysocket.h') 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 - * Stéphane Chatty + * Authors: Francois-Regis Colin * * $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, ... ); -- cgit v1.1