In my program I have a telnet connection with a server. At a certain point in my program I want to check whether there are bytes waiting to be read. Something like
bool BytesWaiting(void)
{
if (ByteAmount >0)
return true
else
return false
}
I've searched the telnet library but I only see functions for send/receive, receiveuntil and open/close.
Does anyone have a solution for this problem?
Thanks in advance.