Rockwell-automation 57C610 Enhanced Basic Language, AutoMax Manual do Utilizador Página 121

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 146
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 120
1 2 ... 116 117 118 119 120 121 122 123 124 125 126 ... 145 146

Comentários a estes Manuais

Sem comentários