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