pub external type Socket
pub type TCPResult { Ok }
Ok
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