arc::Context::connect¶
Synopsis¶
pub fn connect(&self, ep: Endpoint) -> linq_network_socket;
This routine will connect to a remote instance of linq_network (via IPC, or TCP) depending on the endpoint argument.
Parameters¶
Parameter | Description |
---|---|
Endpoint | Endpoint location for the LinQ Network Library to connect too. |
Examples¶
connect to port 33455
let net = linq_network::arc::Context::new();
net.connect(linq_network::Endpoint::Tcp(33455));
connect to IPC “channel” on the current working directory
let net = linq_network::arc::Context::new();
net.connect(linq_network::Endpoint::Ipc("local"));
See also