C backend network receive buffer length command
Posted: Tue Jan 31, 2023 9:59 pm
For Windows code, we can currently use the following to get the number of bytes in the network receive buffer:Where length is a long, and contains the number we need.
Could we get a native PB6 command to do this instead? For example:
Code: Select all
socketHandle = ConnectionID(socketNumber)
result = ioctlsocket_(socketHandle, #FIONREAD, @length)
Could we get a native PB6 command to do this instead? For example:
Code: Select all
bytesAvailable.l = AvailableNetworkData(Connection.l)