12 shutdown% function – Rockwell Automation 57C610 Enhanced Basic Language, AutoMax User Manual
Page 121
Advertising

8Ć11
For example, to test if the socket is connected:
STATUS% = GETSOCKOPT%( SN%, 0800h, OPTION_VALUE%)
8.12
SHUTDOWN% Function
Format:
SHUTDOWN%( sn% )
where:
sn%
is the number of the socket for which the
connection should be terminated.
This function closes the socket to allow it to be reused at a later
time.
TCP sockets need to be shut down at only one end. Either the active
or passive side may close the connection. The other side will
automatically shut down. UDP and Raw Ethernet sockets need to be
shut down at both ends.
Values Returned:
ă1
Success
-2
ENI not initialized
-15 Bad socket number
-28 Socket closed by destination
For example:
STATUS% = SHUTDOWN%( SOCKET_NUM% )
Advertising
This manual is related to the following products: