Rockwell-automation 57C610 Enhanced Basic Language, AutoMax Manual de usuario Pagina 121

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 146
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 120
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% )
Vista de pagina 120
1 2 ... 116 117 118 119 120 121 122 123 124 125 126 ... 145 146

Comentarios a estos manuales

Sin comentarios