WINSOCK CHANNEL ERROR
If an error or an exception occurred using a channel, then this will return 1. You have to check this always after using a command that uses an internal Winsock function, or otherwise your program may not work as desired, or even crash.
WINSOCK LISTEN
WINSOCK CONNECT
WINSOCK CREATE UDP CHANNEL
WINSOCK ACCEPT
WINSOCK REFRESH CHANNEL
WINSOCK SEND MESSAGE
WINSOCK RECV MESSAGE
WINSOCK SEND UPD MESSAGE
WINSOCK RECV UDP MESSAGE
WINSOCK DISCONNECT
WINSOCK RECONNECT
WINSOCK SET CHANNEL TARGET
WINSOCK BIND CHANNEL
(it is good practice to check for errors, altough it is not always needed for the above functions, but can catch those rarely hapenning exceptions that will lead to unexplainable crashes...)
For more information about the error you can use WINSOCK CHANNEL ERROR MSG$(), which will give a decent error description.
Mostly you will want to delete the channel after an error has occurred.

SYNTAX
Return Integer=WINSOCK CHANNEL ERROR()

RELATED INFO
WINSOCK command menu
Index

EXAMPLE
Showcase-example 1
Showcase-example 2