Multitech MultiConnect Adapter Guide de l'utilisateur Page 148

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 154
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 147
Chapter 15 – Raw TCP/UDP Socket Interface to the Serial Device
Command Line Interface and Application Examples for Multi-Tech Systems, Inc. IP Modules (S000368F) 148
Scenario 3 – Setting up TCP Sessions and IP
Module Acting as Client
Create a TCP socket and connect to a TCP server on the network with the following command. Upon successful
connection, a socket handle is returned.
Command
socket tcp <remote_ip> <remote_port>
Example
TCP server running on machine A on port 2000.
#socket tcp 192.168.1.120 2000
<4>
OK
#
Send and recv commands can be used on the returned socket handle to send and receive data to and from A.
Vue de la page 147

Commentaires sur ces manuels

Pas de commentaire