summaryrefslogtreecommitdiff
path: root/i/simulotron/src/socket/socket_server.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_server.hh
parent6e48eaad66126f83480729a38dca1897f2066c11 (diff)
Mise au normes RCS des fichiers du commit (enfin je crois)
Diffstat (limited to 'i/simulotron/src/socket/socket_server.hh')
-rw-r--r--i/simulotron/src/socket/socket_server.hh36
1 files changed, 32 insertions, 4 deletions
diff --git a/i/simulotron/src/socket/socket_server.hh b/i/simulotron/src/socket/socket_server.hh
index bac6687..3b95949 100644
--- a/i/simulotron/src/socket/socket_server.hh
+++ b/i/simulotron/src/socket/socket_server.hh
@@ -1,3 +1,29 @@
+#ifndef socket_server_hh
+#define socket_server_hh
+/* socket_server.hh - Classe des sockets serveur */
+/* 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;
@@ -8,11 +34,13 @@ class SocketServer
int socket_;
public:
/// Constructeur
- SocketServer(const Address & address);
+ SocketServer (const Address & address);
/// Destructeur
- ~SocketServer(void);
+ ~SocketServer (void);
/// Ecoute le port
- void listen(int maxQueue);
+ void listen (int maxQueue);
/// accepte une connection et renvoie le fd
- int accept(void);
+ int accept (void);
};
+
+#endif //socket_server_hh