summaryrefslogtreecommitdiff
path: root/i/simulotron/src/socket/socket.hh
diff options
context:
space:
mode:
Diffstat (limited to 'i/simulotron/src/socket/socket.hh')
-rw-r--r--i/simulotron/src/socket/socket.hh10
1 files changed, 6 insertions, 4 deletions
diff --git a/i/simulotron/src/socket/socket.hh b/i/simulotron/src/socket/socket.hh
index c1b47df..27f3f5d 100644
--- a/i/simulotron/src/socket/socket.hh
+++ b/i/simulotron/src/socket/socket.hh
@@ -1,3 +1,5 @@
+class Address;
+
class Socket
{
private:
@@ -5,15 +7,15 @@ class Socket
int socket_;
public:
/// Constructeur
- Socket(const Address & adress, bool block = false);
+ Socket(const Address & address);
/// Constructeur à partir d'un fd
Socket(int socket);
/// Connect le client au serveur
- void connect(void);
+ void connect(const Address & address);
/// Ecoute le port
- void listen(void);
+ void listen(int maxQueue);
/// accepte une connection
- void accept(void);
+ Socket accept(Address & adress);
/// lit du socket
void read(void);
/// écrit dans le socket