WINSOCK RECV WORD

If a channel has data waiting for you (indicated by WINSOCK CHANNEL DATA WAITING()), then you can use this command to receive a word (two bytes) (using LittleEndian Memory representation).
If the connection has been closed, then a value of 0 is returned and WINSOCK CHANNEL ERROR() returns 1. You should always check for this!


SYNTAX
Return Word=WINSOCK RECV WORD(tcp_channel as Dword)

RELATED INFO
WINSOCK command menu
Index

EXAMPLE
Showcase-example 1
Showcase-example 2