From WikiChip
Difference between revisions of "mirc/identifiers/$sockerr"
< mirc‎ | identifiers

(Created page with "{{mirc title|$sockerr Identifier}}'''$sockerr''' return the socker error number if an error occured. For example, in the {{mIRC|on events/on sockopen|on sockopen}} event, if ...")
 
Line 2: Line 2:
  
 
For example, in the {{mIRC|on events/on sockopen|on sockopen}} event, if the connection is not established, $sockerr is set
 
For example, in the {{mIRC|on events/on sockopen|on sockopen}} event, if the connection is not established, $sockerr is set
 +
 +
Inside the on sockopen event:
 +
* '''0''' - Success.
 +
* '''3''' - Failure establishing socket connection: $sock($sockname).wsmsg will contain a more specific error message.
 +
* '''4''' - Error resolving given hostname.
 +
 +
  
 
== Synopsis ==
 
== Synopsis ==

Revision as of 10:55, 21 August 2017

$sockerr return the socker error number if an error occured.

For example, in the on sockopen event, if the connection is not established, $sockerr is set

Inside the on sockopen event:

  • 0 - Success.
  • 3 - Failure establishing socket connection: $sock($sockname).wsmsg will contain a more specific error message.
  • 4 - Error resolving given hostname.


Synopsis

$sockerr

Paramters

None

Properties

None

Example

on *:sockread:name:{
if ($sockerr) return
...
}

Compatibility

Added: mIRC v5.3
Added on: 13 Dec 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also

$sock $sockname $sockbr