summaryrefslogtreecommitdiff
path: root/i/simulotron/src/socket/socket_client.cc
diff options
context:
space:
mode:
authorhaller2005-12-07 16:36:13 +0000
committerhaller2005-12-07 16:36:13 +0000
commit3e691f04f750340df2d1071e99a5889b9b81c05b (patch)
tree04fd4eb1c8a4378e98a1d805c0234cd2a88bddb6 /i/simulotron/src/socket/socket_client.cc
parent6dd92c230db1e1c27b02f54a86fb710c1d7269fc (diff)
* Ajout d'une fonction getFD dans les classe socket*
* Mini-optimisation dans GSTransmitter * rajout d'une bidouille pour rendre GSTransmitter non bloquant
Diffstat (limited to 'i/simulotron/src/socket/socket_client.cc')
-rw-r--r--i/simulotron/src/socket/socket_client.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/i/simulotron/src/socket/socket_client.cc b/i/simulotron/src/socket/socket_client.cc
index ef26e70..b8bdbc3 100644
--- a/i/simulotron/src/socket/socket_client.cc
+++ b/i/simulotron/src/socket/socket_client.cc
@@ -112,3 +112,9 @@ SocketClient::putChar (char c)
if (::write (socket_, &c, 1) < 0)
throw errno_exception ("SocketClient: erreur d'écriture (write()) ", errno);
}
+
+int
+SocketClient::getFD(void)
+{
+ return socket_;
+}