WINSOCK READ WORD

After having called WINSOCK FETCH PACKET, you may use this command to read a word (2 bytes) of the packet's data. Each read command moves the read cursor accordingly.
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 have to 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).
You can check the length of the packet using WINSOCK PACKET LEN, which returns always the total data length of the actual packet.

SYNTAX
Return Word=WINSOCK READ WORD()

RELATED INFO
WINSOCK command menu
Index

EXAMPLE
Showcase-example 1
Showcase-example 2