User manual

14
This task uses a TCP server socket that listens by default on port 9760 to implement a simple
relay server. Any message that is received on that TCP port will be relayed back to the originating
socket. The following table lists and describes the available commands
Command Description:
topen_s1 Opens the listening TCP server socket.
tmsg_s1 Sends a short message using this socket to the remote client.
tabort_s1 Sends an abort/RST to the remote client and stops the communication.
tclose_s1 Closes the socket and stops the communication.
ttxsize_s1 Sets the TX buffer size of the server socket. The larger the buffer the more memory is
used by the socket and the more efficient is the transfer. Default value is 2048 bytes.
trxsize_s1 Sets the RX buffer size of the server socket. The larger the buffer the more memory is
used by the socket and the more efficient is the transfer. Default value is 2048 bytes.
tdisplay_s1 Enables displaying of the received messages locally to the system console.
tstat_s1 Displays/clears the current TX and RX statistics for the current connection.
app2.c::TCP client
This task uses a TCP client socket to connect to a remote server that listens by default on port
9761. Any message that is received by the socket can be optionally displayed locally. The client
has the possibility of sending messages to the server. The following table lists and describes the
available commands.
Command Description
topen_c1 Opens the TCP client socket.
tmsg_c1 Sends a message to the remote server.
tabort_c1 Sends an abort/RST to the server and stops the communication.
tclose_c1 Closes the socket and stops the communication.
tsrv4_c1 Sets the server IPv4 address and port. The default values are 192.168.100.101 and
9761.
tasync_c1 Enables the continuous transmission of messages to the server.
tdisplay_c1 Enables displaying of the received messages locally to the system console.
tstat_c1 Displays/clears the current TX and RX statistics for the current connection.
app3.c::UDP server