arc::Context::close¶
Synopsis¶
pub fn close(&self, s: &linq_network_socket) -> &Self;
This routine will close a connection created by arc::Context::listen and arc::Context::connect
Parameters¶
Parameter | Description |
---|---|
&linq_network_socket | socket handle representing the connection to close (returned from arc::Context::listen and arc::Context::connect |
Examples¶
close connection on port 33456
let net = linq_network::arc::Context::new();
let socka = net.listen(linq_network::Endpoint::Tcp(33455));
let sockb = net.listen(linq_network::Endpoint::Tcp(33456));
// ...
net.close(&sockb);
See also