Info (Socket function): Difference between revisions
Jump to navigation
Jump to search
m (→Syntax terms) |
m (→Syntax terms) |
||
Line 20: | Line 20: | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th><var>CAPTURE</var></th> | <tr><th><var>CAPTURE</var></th> | ||
<td>Retrieve current print capture setting of socket (see <var>[[Capture (Socket function)|Capture]]</var>). The socket need not be OPEN. </td></tr> | <td>Retrieve current print capture setting of socket (see <var>[[Capture (Socket function)|Capture]]</var>). The socket need not be <var>OPEN</var>. </td></tr> | ||
<tr><th><var>REMOTE</var></th> | <tr><th><var>REMOTE</var></th> | ||
<td>Retrieve dotted IP address of remote host, followed by blank and remote port number. The socket must be <var>OPEN</var>; if it is not, the string <code>RESET</code> is returned. </td></tr> | <td>Retrieve dotted IP address of remote host, followed by blank and remote port number. The socket must be <var>OPEN</var>; if it is not, the string <code>RESET</code> is returned. </td></tr> |
Revision as of 15:42, 11 June 2012
Retrieve information about the socket (Socket class)
This method retrieves the information that you request about the socket.
The Info function has an effect similar to
its equivalent $function, $Sock_Info.
Syntax
%string = socket:Info( string)
Syntax terms
%string | A string variable to contain the returned information. | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
socket | A variable or an expression that is a reference to a Socket object. | ||||||||||||||||||
string | One of the following strings:
|
Usage notes
- If Info is invoked with a Socket object that is RESET, the results
depend on several factors:
- If the string argument is
ONRESET
, the operation is performed normally, with no indication of the fact that the socket is RESET. - Otherwise, if string is a keyword that does not require an
OPEN socket, and
ONRESET CONTINUE
,CANCELC
, orLABELC
is in effect for the socket, the stringRESET
is returned, and the last error information is set. - Otherwise, if
ONRESET CONTINUE
is in effect for the socket, the stringRESET
is returned, and the last error information is set. - Otherwise, the request is canceled, or the ONRESET label is jumped to, as explained in " Handling connection errors and RESET sockets".
- If the string argument is