ErrInfo (Socket function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
Line 27: Line 27:
</td></tr></table>
</td></tr></table>


<var>ErrInfo</var> is not affected by any <code>ONRESET</code> setting.
==Usage notes==
<ul>
<li><var>ErrInfo</var> is not affected by any <code>ONRESET</code> setting.
</ul>


==See also==
{{Template:Socket:ErrInfo footer}}
{{Template:Socket:ErrInfo footer}}

Revision as of 15:37, 11 June 2012

Retrieve info about the most recent socket error (Socket class)


This shared method retrieves information about the last Janus Sockets error. The ErrInfo function is similar in effect to $Sock_Errinfo.

Syntax

%string = %(Socket):ErrInfo( string)

Syntax terms

%string A string variable to contain the returned error information. If no Janus Sockets error has occurred since the thread logged in, a null string is returned.
%(Socket) The class name in parentheses denotes a shared method. ErrInfo can also be invoked via a Socket object variable, which may be Null.
string One of the following strings:
CODE Retrieve the code from the last Janus Sockets error.
SOCKNUM Retrieve the socket number used by the last Janus Sockets operation with an error condition.
FUN Retrieve the name of the $function producing the last Janus Sockets error. This may also be the string "Captured print", if a captured "print" operation was the last operation that encountered a Janus Sockets error.

Usage notes

  • ErrInfo is not affected by any ONRESET setting.

See also