Permalink
Browse files

Merge pull request #9 from alper/patch-1

Modernizes zmq_(send|recv) to zmq_(send|recv)msg.
  • Loading branch information...
2 parents f5e254a + 9ff3f87 commit 01763f9ce83c2d661005dc92baca547b27b92874 @jeremy-w committed Aug 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ZMQSocket.m
View
@@ -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);

0 comments on commit 01763f9

Please sign in to comment.