Skip to content

Instantly share code, notes, and snippets.

@mystal
Created February 5, 2015 16:43
Show Gist options
  • Save mystal/1d0563109e53deff3794 to your computer and use it in GitHub Desktop.
Save mystal/1d0563109e53deff3794 to your computer and use it in GitHub Desktop.
Socket file created is /tmp/my_socket.ipctext
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