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