quote server = Socket.listen("localhost", "58000")
server = Socket.listen("localhost", "58000")
quote client = Socket.Buf.connect("localhost", "58000")
client = Socket.Buf.connect("localhost", "58000")
quote server_client = Socket.accept(server)
server_client = Socket.Buf.accept(server)
quote client.buf_rw
client.buf_rw
quote client.buf_rw.w
client.buf_rw.w
quote Buf.write_str(client.buf_rw.w, "GET / HTTP/1.0\r\n\r\n")
Buf.write_str(client.buf_rw.w, "GET / HTTP/1.0\r\n\r\n")
quote req = HTTP.Request.buf_parse(server_client.buf_rw.r)
req = HTTP.Request.buf_parse(server_client.buf_rw.r)
quote Socket.Buf.close(client)
Socket.Buf.close(client)
quote Socket.Buf.close(server_client)
Socket.Buf.close(server_client)
quote Socket.close(server)
Socket.close(server)