summaryrefslogtreecommitdiff
path: root/src/tcp_socket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tcp_socket.cpp')
-rw-r--r--src/tcp_socket.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tcp_socket.cpp b/src/tcp_socket.cpp
index 21f60f9..782f0d8 100644
--- a/src/tcp_socket.cpp
+++ b/src/tcp_socket.cpp
@@ -50,6 +50,11 @@ int zmq::tcp_socket_t::close ()
return 0;
}
+zmq::fd_t zmq::tcp_socket_t::get_fd ()
+{
+ return s;
+}
+
int zmq::tcp_socket_t::write (const void *data, int size)
{
int nbytes = send (s, (char*) data, size, 0);