Closed Boolsheet closed 13 years ago
The tcpServer:receive function will have a hard time getting any data as non-blocking sockets most likley return with the timeout error.
https://github.com/bartbes/love-misc-libs/blob/LUBE-testing/LUBE/LUBE.lua#L384
The luasocket reference says that the receive function returns the following things: dataAsRequestedByPattern, errorMsg, partialData
Where partialData can be an empty string if nothing is in the buffer or however it gets handled.
On top of that LUBE passes no pattern and luasocket defaults to "*l" which drops all CR and LF characters.
The tcpServer:receive function will have a hard time getting any data as non-blocking sockets most likley return with the timeout error.
https://github.com/bartbes/love-misc-libs/blob/LUBE-testing/LUBE/LUBE.lua#L384
The luasocket reference says that the receive function returns the following things: dataAsRequestedByPattern, errorMsg, partialData
Where partialData can be an empty string if nothing is in the buffer or however it gets handled.
On top of that LUBE passes no pattern and luasocket defaults to "*l" which drops all CR and LF characters.