all socket methods implemented

This commit is contained in:
2026-07-10 11:41:35 +10:00
parent 0a51c54040
commit 5f78bf745a
5 changed files with 291 additions and 10 deletions

View File

@@ -10,9 +10,11 @@ func main() -> int {
socket.Socket client = s.accept()
io.println("Connection received!")
string response = client.recv(256)
string response = client.read(1024)
io.println("Response: %s", response)
client.sendByte('a')
s.close()
return 0