Created
June 29, 2016 14:32
-
-
Save kdheepak/dca9d20f6bea93de8756068f79dc60a2 to your computer and use it in GitHub Desktop.
MATLAB ZMQ Server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Author : Dheepak Krishnamurthy | |
% License : BSD 3 Clause | |
import org.zeromq.ZMQ; | |
ctx = zmq.Ctx(); | |
socket = ctx.createSocket(ZMQ.REP); | |
socket.bind('tcp://127.0.0.1:7575'); | |
message = socket.recv(0); | |
json_data = native2unicode(message.data)'; | |
message = zmq.Msg(8); | |
message.put(unicode2native('Received')); | |
socket.send(message, 0); | |
socket.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment