Multitech MultiConnect Adapter Guía de usuario Pagina 148

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 154
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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.
Vista de pagina 147

Comentarios a estos manuales

Sin comentarios