Remove outdated ZeroMQ example (zmq has been moved out of the stdlib)
This commit is contained in:
parent
3a00692ef8
commit
7dac395cb2
2 changed files with 0 additions and 25 deletions
|
|
@ -1,14 +0,0 @@
|
||||||
import zmq
|
|
||||||
|
|
||||||
var connection = zmq.open("tcp://localhost:5555", server=false)
|
|
||||||
|
|
||||||
echo("Connecting...")
|
|
||||||
|
|
||||||
for i in 0..10:
|
|
||||||
echo("Sending hello...", i)
|
|
||||||
send(connection, "Hello")
|
|
||||||
|
|
||||||
var reply = receive(connection)
|
|
||||||
echo("Received ...", reply)
|
|
||||||
|
|
||||||
close(connection)
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
import zmq
|
|
||||||
|
|
||||||
var connection = zmq.open("tcp://*:5555", server=true)
|
|
||||||
|
|
||||||
while True:
|
|
||||||
var request = receive(connection)
|
|
||||||
echo("Received: ", request)
|
|
||||||
send(connection, "World")
|
|
||||||
|
|
||||||
close(connection)
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue