summaryrefslogtreecommitdiff
path: root/src/socket_base.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-03-09 18:14:49 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-03-09 18:14:49 +0100
commitd790940fd06060c8a2c624b0e41e470ad31ae0d8 (patch)
tree2732f1b82fc6298b21ca80b24788c400e7e89b17 /src/socket_base.cpp
parent5a776f5597cac632ca507e2d80ca0de064bba1d6 (diff)
udp transport renamed to epgm
Diffstat (limited to 'src/socket_base.cpp')
-rw-r--r--src/socket_base.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/socket_base.cpp b/src/socket_base.cpp
index 871f9e9..f17a578 100644
--- a/src/socket_base.cpp
+++ b/src/socket_base.cpp
@@ -111,7 +111,7 @@ int zmq::socket_base_t::bind (const char *addr_)
}
#if defined ZMQ_HAVE_OPENPGM
- if (addr_type == "pgm" || addr_type == "udp") {
+ if (addr_type == "pgm" || addr_type == "epgm") {
// In the case of PGM bind behaves the same like connect.
return connect (addr_);
}
@@ -252,7 +252,7 @@ int zmq::socket_base_t::connect (const char *addr_)
}
#if defined ZMQ_HAVE_OPENPGM
- if (addr_type == "pgm" || addr_type == "udp") {
+ if (addr_type == "pgm" || addr_type == "epgm") {
// If the socket type requires bi-directional communication
// multicast is not an option (it is uni-directional).
@@ -261,10 +261,8 @@ int zmq::socket_base_t::connect (const char *addr_)
return -1;
}
- // For udp, pgm transport with udp encapsulation is used.
- bool udp_encapsulation = false;
- if (addr_type == "udp")
- udp_encapsulation = true;
+ // For epgm, pgm transport with UDP encapsulation is used.
+ bool udp_encapsulation = (addr_type == "epgm");
// At this point we'll create message pipes to the session straight
// away. There's no point in delaying it as no concept of 'connect'