Returns the number of bytes available to be read. If this returns 0 then the read commands, like GetSocketInteger will return no data.
integer GetSocketBytesAvailable( socketID )
int agk::GetSocketBytesAvailable( UINT socketID )