We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
zmq_unbind
1 parent 4846423 commit f7566bdCopy full SHA for f7566bd
src/lib.rs
@@ -614,6 +614,13 @@ impl Socket {
614
Ok(())
615
}
616
617
+ /// Stop accepting connections on a socket
618
+ pub fn unbind(&self, endpoint: &str) -> Result<()> {
619
+ let c_str = ffi::CString::new(endpoint.as_bytes()).unwrap();
620
+ zmq_try!(unsafe { zmq_sys::zmq_unbind(self.sock, c_str.as_ptr()) });
621
+ Ok(())
622
+ }
623
+
624
/// Connect a socket.
625
pub fn connect(&self, endpoint: &str) -> Result<()> {
626
let c_str = ffi::CString::new(endpoint.as_bytes()).unwrap();
0 commit comments