Adjusted wsocket to match usocket. Adjusted windows projects.
This commit is contained in:
parent
195069cf5f
commit
42e0e74487
6 changed files with 79 additions and 63 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue