From 2e87c72204b7e2627af6ce9af3566509d239ef15 Mon Sep 17 00:00:00 2001 From: haller Date: Sat, 3 Dec 2005 18:10:59 +0000 Subject: Mise au normes RCS des fichiers du commit (enfin je crois) --- i/simulotron/src/socket/socket_client.hh | 45 ++++++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 8 deletions(-) (limited to 'i/simulotron/src/socket/socket_client.hh') diff --git a/i/simulotron/src/socket/socket_client.hh b/i/simulotron/src/socket/socket_client.hh index 112a4dd..a024bec 100644 --- a/i/simulotron/src/socket/socket_client.hh +++ b/i/simulotron/src/socket/socket_client.hh @@ -1,4 +1,31 @@ +#ifndef socket_client_hh +#define socket_client_hh +/* socket_client.hh - Classe des socket client */ +/* Simulotron - Programme de simulation de robot {{{ + * + * Copyright (C) 2005 Nicolas Haller + * + * Robot APB Team/Efrei 2005. + * Web: http://assos.efrei.fr/robot/ + * Email: robot AT efrei DOT fr + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * }}} */ #include + class Address; class SocketServer; @@ -12,19 +39,21 @@ class SocketClient static const int BUFFER_SIZE = 256; public: /// Constructeur - SocketClient(const Address & address); + SocketClient (const Address & address); /// Constructeur accept - SocketClient(SocketServer & socketServer); + SocketClient (SocketServer & socketServer); /// Destructeur - ~SocketClient(void); + ~SocketClient (void); /// Connect le client au serveur - void connect(const Address & address); + void connect (const Address & address); /// lit du socket - std::string read(void); + std::string read (void); /// écrit dans le socket - void write(const std::string & str); + void write (const std::string & str); /// lit un charactère du socket - char getChar(void); + char getChar (void); /// écrit un charactère dans le socket - void putChar(char c); + void putChar (char c); }; + +#endif //socket_client_hh -- cgit v1.2.3