mirror of
https://github.com/storytold/point-generator.git
synced 2026-10-09 00:09:43 +00:00
switch to "PUSH" mode
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ use crate::color::Color;
|
|||||||
fn main() {
|
fn main() {
|
||||||
let ctx = zmq::Context::new();
|
let ctx = zmq::Context::new();
|
||||||
|
|
||||||
let socket = ctx.socket(zmq::REQ).unwrap();
|
let socket = ctx.socket(zmq::PUSH).unwrap();
|
||||||
|
|
||||||
socket.connect("tcp://127.0.0.1:5555").unwrap();
|
socket.connect("tcp://127.0.0.1:5555").unwrap();
|
||||||
//socket.send("hello world!", 0).unwrap();
|
//socket.send("hello world!", 0).unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user