WINSOCK PACKET LEN

After having called WINSOCK FETCH PACKET, you may use this command to get the length of the data in the actual packet.
A packet will have at most 255 bytes, since the dll uses 1 byte for your packets to seperate them (stores the length).
Using this command you can make sure that you are not trying to read data out of the packet's data boundary. If you do so, your program will cause an assertion (debug dll) or will silently crash (release version).
The length returned is the total length of data, regardless of how many bytes you already have read in that packet.

SYNTAX
Return Integer=WINSOCK PACKET LEN()

RELATED INFO
WINSOCK command menu
Index

EXAMPLE
Showcase-example 1
Showcase-example 2