Rockwell-automation 57C610 Enhanced Basic Language, AutoMax Manuel d'utilisateur Page 121

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 146
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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% )
Vue de la page 120
1 2 ... 116 117 118 119 120 121 122 123 124 125 126 ... 145 146

Commentaires sur ces manuels

Pas de commentaire