WINSOCK RECV INT

If a channel has data waiting for you (indicated by WINSOCK CHANNEL DATA WAITING()), then you can use this command to receive an integer (4 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 Integer=WINSOCK RECV INTEGER(tcp_channel as Dword)

RELATED INFO
WINSOCK command menu
Index

EXAMPLE
Showcase-example 1
Showcase-example 2