Function connectTcp [src]
Reuses a Connection if one matching host and port is already open.
Threadsafe.
Prototype
pub fn connectTcp( client: *Client, host: []const u8, port: u16, protocol: Protocol, ) ConnectTcpError!*Connection
Parameters
client: *Client
host: []const u8
port: u16
protocol: Protocol
Possible Errors
Source
pub fn connectTcp(
client: *Client,
host: []const u8,
port: u16,
protocol: Protocol,
) ConnectTcpError!*Connection {
return connectTcpOptions(client, .{ .host = host, .port = port, .protocol = protocol });
}