EVENT Error ( ) |
---|
This event raises when some failed (for instance remote host refused connection). Status property will turn to a value lesser than zero, and socket will be automatically closed. Status property value reflects the error type
Constant | Value | Comment |
---|---|---|
Socket.CannotCreateSocket | -2 | Unable to create a new socket |
Socket.HostNotFound | -6 | Unable to translate host name to host IP |
Socket.ConnectionRefused | -3 | Remote system does not allow connections to selected port or path |
Socket.CannotRead | -4 | Unable to read (broken pipe) |
Socket.CannotWrite | -5 | Unable to write (broken pipe) |