mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-13 14:14:30 +02:00
Closer to release...
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
HOST = HOST or "localhost"
|
||||
PORT = PORT or "8080"
|
||||
host = host or "localhost"
|
||||
port = port or "8080"
|
||||
|
||||
server, error = socket.bind(HOST, PORT)
|
||||
server, error = socket.bind(host, port)
|
||||
if not server then print("server: " .. tostring(error)) os.exit() end
|
||||
while 1 do
|
||||
print("server: waiting for client connection...");
|
||||
|
Reference in New Issue
Block a user