
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.
Comentarios a estos manuales