summaryrefslogtreecommitdiff
path: root/src/pgm_sender.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-08-17 18:41:02 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-08-17 18:41:02 +0200
commit3488af048f336867594330d4abd0ad6dab110ea0 (patch)
treeb3d27974002a01cacf7f6510037a4f7beda9dad6 /src/pgm_sender.cpp
parented373450a28cff34757a70e2c7a102ecc40e3836 (diff)
Fix the PGM support on win64
On win64 the size of file descriptor is not the same as size of int. The bug in PGM transport caused a runtime error because of this. The problem is fixed now. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/pgm_sender.cpp')
-rw-r--r--src/pgm_sender.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pgm_sender.cpp b/src/pgm_sender.cpp
index 79d4e32..e103d9a 100644
--- a/src/pgm_sender.cpp
+++ b/src/pgm_sender.cpp
@@ -65,10 +65,10 @@ int zmq::pgm_sender_t::init (bool udp_encapsulation_, const char *network_)
void zmq::pgm_sender_t::plug (io_thread_t *io_thread_, session_t *session_)
{
// Alocate 2 fds for PGM socket.
- int downlink_socket_fd = 0;
- int uplink_socket_fd = 0;
- int rdata_notify_fd = 0;
- int pending_notify_fd = 0;
+ fd_t downlink_socket_fd = retired_fd;
+ fd_t uplink_socket_fd = retired_fd;
+ fd_t rdata_notify_fd = retired_fd;
+ fd_t pending_notify_fd = retired_fd;
encoder.set_session (session_);