Adjusted wsocket to match usocket. Adjusted windows projects.

This commit is contained in:
Diego Nehab 2004-01-21 20:16:48 +00:00
parent 195069cf5f
commit 42e0e74487
6 changed files with 79 additions and 63 deletions

View file

@ -6,7 +6,8 @@ if not server then print("server: " .. tostring(error)) os.exit() end
ack = "\n"
while 1 do
print("server: waiting for client connection...");
control = server:accept()
control, error = server:accept()
assert(control, error)
-- control:setoption("nodelay", true)
while 1 do
command, error = control:receive()