summaryrefslogtreecommitdiff
path: root/i/simulotron/src/socket/socket_server.hh
diff options
context:
space:
mode:
Diffstat (limited to 'i/simulotron/src/socket/socket_server.hh')
-rw-r--r--i/simulotron/src/socket/socket_server.hh18
1 files changed, 18 insertions, 0 deletions
diff --git a/i/simulotron/src/socket/socket_server.hh b/i/simulotron/src/socket/socket_server.hh
new file mode 100644
index 0000000..bac6687
--- /dev/null
+++ b/i/simulotron/src/socket/socket_server.hh
@@ -0,0 +1,18 @@
+#include <string>
+class Address;
+
+class SocketServer
+{
+ private:
+ /// Ze socket
+ int socket_;
+ public:
+ /// Constructeur
+ SocketServer(const Address & address);
+ /// Destructeur
+ ~SocketServer(void);
+ /// Ecoute le port
+ void listen(int maxQueue);
+ /// accepte une connection et renvoie le fd
+ int accept(void);
+};