Renamed raw option to ZMQ_ROUTER_RAW

This commit is contained in:
Pieter Hintjens
2012-11-06 13:18:58 +01:00
parent 80aef8dfda
commit 777c38ae32
4 changed files with 21 additions and 4 deletions

View File

@@ -79,7 +79,7 @@ int zmq::router_t::xsetsockopt (int option_, const void *optval_,
size_t optvallen_)
{
if (option_ != ZMQ_ROUTER_MANDATORY
&& option_ != ZMQ_ROUTER_RAW_SOCK) {
&& option_ != ZMQ_ROUTER_RAW) {
errno = EINVAL;
return -1;
}
@@ -87,7 +87,7 @@ int zmq::router_t::xsetsockopt (int option_, const void *optval_,
errno = EINVAL;
return -1;
}
if (option_ == ZMQ_ROUTER_RAW_SOCK) {
if (option_ == ZMQ_ROUTER_RAW) {
raw_sock = *static_cast <const int*> (optval_);
if (raw_sock) {
options.recv_identity = false;