generated from Comet/Comet-C-External-Lib
all socket methods implemented
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user