tcp

Types

pub external type Socket
pub type TCPResult {
  Ok
}

Constructors

  • Ok

Functions

pub fn connect(host: String, port: Int) -> Result(Socket, Nil)
pub fn receive(socket: Socket) -> Result(BitString, Nil)
pub fn send(socket: Socket, data: BitString) -> TCPResult