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.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/i/simulotron/src/socket/socket_server.hh b/i/simulotron/src/socket/socket_server.hh
index 30868e8..67800f1 100644
--- a/i/simulotron/src/socket/socket_server.hh
+++ b/i/simulotron/src/socket/socket_server.hh
@@ -35,6 +35,8 @@ class SocketServer
public:
/// Constructeur
SocketServer (const Address & address);
+ /// Constructeur s'occupant de Address
+ SocketServer (const std::string & address, int port);
/// Destructeur
~SocketServer (void);
/// Ecoute le port
@@ -42,7 +44,10 @@ class SocketServer
/// accepte une connection et renvoie le fd
int accept (void);
/// récupère le FD du socket
- int getFD (void);
+ int getFD (void) const;
+ private:
+ /// Initialise le socket
+ void initSocket(const Address & address);
};
#endif //socket_server_hh