Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed calls in zmq to send messages

  • Loading branch information...
commit 9ff3f87f20a745dec96b8da3c88161a64d7bee2d 1 parent f5e254a
@alper alper authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ZMQSocket.m
View
4 src/ZMQSocket.m
@@ -154,7 +154,7 @@ - (BOOL)sendData:(NSData *)messageData withFlags:(ZMQMessageSendFlags)flags {
[messageData getBytes:zmq_msg_data(&msg) length:zmq_msg_size(&msg)];
- err = zmq_send(self.socket, &msg, flags);
+ err = zmq_sendmsg(self.socket, &msg, flags);
BOOL didSendData = (0 == err);
if (!didSendData) {
ZMQLogError(self, @"zmq_send");
@@ -177,7 +177,7 @@ - (NSData *)receiveDataWithFlags:(ZMQMessageReceiveFlags)flags {
return nil;
}
- err = zmq_recv(self.socket, &msg, flags);
+ err = zmq_recvmsg(self.socket, &msg, flags);
if (err) {
ZMQLogError(self, @"zmq_recv");
err = zmq_msg_close(&msg);
Please sign in to comment.
Something went wrong with that request. Please try again.