WINSOCK PACKET COUNT
After having called WINSOCK SPLIT DATA, you may use this command to get the amount of unread packets that are waiting on a channel.
To read them you will have to fetch and read one packet after the other using WINSOCK FETCH PACKET and the apropriate WINSOCK READ BYTE etc.. commands.
Note that after you have fetched a packet it will no more be available on that channel. When WINSOCK PACKET COUNT returns 0, you will have read all packets.
SYNTAX
Return Integer=WINSOCK PACKET COUNT(channel as Dword)
RELATED INFO
WINSOCK command menu
Index
EXAMPLE
Showcase-example 1
Showcase-example 2