lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

flood.lua continually prints:
[snip]

This it what it should print.

whilst server.lua gives:

Binding to host '127.0.0.1' and port 8081...
Waiting for packets on 127.0.0.1:8081...
Binding to host '127.0.0.1' and port 8082...
Waiting for packets on 127.0.0.1:8082...
Binding to host '127.0.0.1' and port 8083...
Waiting for packets on 127.0.0.1:8083...
Binding to host '127.0.0.1' and port 8084...
Waiting for packets on 127.0.0.1:8084...
Binding to host '127.0.0.1' and port 8085...
Waiting for packets on 127.0.0.1:8085...
Packet received on 127.0.0.1/2193 4 bytes
Packet received on 127.0.0.1/2193 4 bytes
Packet received on 127.0.0.1/2193 4 bytes
Packet received on 127.0.0.1/2193 4 bytes

Did you notice how fast these packets arrive? If select is blocking
until timeout, they should come every second. If select returns whenever
a packet arrives, they should come every 1/2 second. What is it in your
system? As I said, on Linux and on Mac OS X, this works, and the packet
messages come every 1/2 second.

Regards,
Diego.