Files
socket/client.comet

16 lines
269 B
Plaintext
Raw Normal View History

import socket
import io
func main() -> int {
socket.Socket s = new socket.Socket(socket.Family.INET, socket.Type.STREAM, 0)
s.connect("127.0.0.1", 2000)
s.send("hi!")
2026-07-10 11:41:35 +10:00
small byte = s.readByte()
io.println("%c", byte)
s.close()
return 0
}