Created
February 5, 2015 16:43
-
-
Save mystal/1d0563109e53deff3794 to your computer and use it in GitHub Desktop.
Socket file created is /tmp/my_socket.ipctext
This file contains hidden or 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
extern crate nanomsg; | |
use nanomsg::{ | |
Protocol, | |
Socket, | |
}; | |
fn main() { | |
let mut socket = Socket::new(Protocol::Pair).unwrap(); | |
let mut endpoint = socket.bind("ipc:///tmp/my_socket.ipc").unwrap(); | |
println!("text"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment