GLBasic User Manual

Main sections

SOCK_INIT

ok% = SOCK_INIT()


Call this command first to enable network commands. On Windows this will call WSAStartup and initialize some memory used internally. The return value is either TRUE if everything is OK or FALSE to indicate an error.
You can retrieve any error messages with NETGETLASTERROR$().

See also...