summaryrefslogtreecommitdiff
path: root/i/simulotron/src/socket/socket_client.hh
diff options
context:
space:
mode:
authorhaller2005-12-03 18:10:59 +0000
committerhaller2005-12-03 18:10:59 +0000
commit2e87c72204b7e2627af6ce9af3566509d239ef15 (patch)
tree504b13a16ecdce175e43bb37315b43c571932590 /i/simulotron/src/socket/socket_client.hh
parent6e48eaad66126f83480729a38dca1897f2066c11 (diff)
Mise au normes RCS des fichiers du commit (enfin je crois)
Diffstat (limited to 'i/simulotron/src/socket/socket_client.hh')
-rw-r--r--i/simulotron/src/socket/socket_client.hh45
1 files changed, 37 insertions, 8 deletions
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 <string>
+
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