diff --git a/socket.bmx b/socket.bmx index 4c85888..b315e13 100644 --- a/socket.bmx +++ b/socket.bmx @@ -89,7 +89,7 @@ Type TZMQ_Socket about: Throws a TZMQ_Exception on errors End Rem Method SetSockOpt(socket_option:Int, value:String) - Local rc:Int = zmq_setsockopt(Self.socket, socket_option, value, 0) + Local rc:Int = zmq_setsockopt(Self.socket, socket_option, value, value.Length) If rc = -1 Then Throw New TZMQ_Exception End Method diff --git a/zmq.bmx b/zmq.bmx index 1c2e696..f831e8c 100644 --- a/zmq.bmx +++ b/zmq.bmx @@ -37,6 +37,7 @@ ModuleInfo "ZeroMQ: http://www.zeromq.org" ModuleInfo "ZeroMQ License: LGPL (see contents of ./zeromq)" ModuleInfo "Git repository: https://github.com/Htbaa/zmq.mod/" ModuleInfo "Issues: https://github.com/Htbaa/zmq.mod/issues" +ModuleInfo "History: TZMQ_Socket.SetSockOpt() now properly sets options" ModuleInfo "History: TZMQ_Message.Close() now properly frees up memory" ModuleInfo "History: 0.01" ModuleInfo "History: First release of htbaapub.zmq using ZMQ 2.1.11. No support yet for input/output multiplexing with zmq_poll()"