tcpea/client
Functions
pub fn connect(options: TcpeaOptions) -> Result(Socket, Error)
Create a socket connection using the options.
pub fn ip_version(
options: TcpeaOptions,
ip_version: IpVersion,
) -> TcpeaOptions
Specify the IP version to use for the conenction.
pub fn receive(
socket: Socket,
milliseconds timeout: Int,
) -> Result(BitArray, Error)
Receive a packet from the socket.
pub fn send(
socket: Socket,
packet: BitArray,
) -> Result(Nil, Error)
Send a packet through the socket.