GLBasic User Manual

Main sections


rv% = SOCK_CLOSE(sock%)

Closes a socket once it is no longer required. Ensure you do not try to use it after it has been closed as GLBasic will reuse the socket number for new connections very quickly.
The return value is TRUE if no error occurs.

You can retrieve any error messages with NETGETLASTERROR$().

See also...