Multitech MultiConnect Adapter Guía de usuario Pagina 62

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 154
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 61
Chapter 2 – Command Line Interface (CLI)
Command Line Interface and Application Examples for Multi-Tech Systems, Inc. IP Modules (S000368F) 62
RAW TCP/UDP Socket Support – Setup Commands
Command Syntax socket listlisten [-s] [-d]
Description -s : When the socket-only option is specified, it displays the TCP server socket
handle, local port, backlog and TCP listen socket handles.
-d : When the socket-detail option is specified, it displays all socket-only option
information along with the TCP listen socket's Local IP address, Local Port,
Remote IP address, Remote Port, etc.
The displayed handles are limited to backlog specified in "socket tcplisten <listen-
port> <backlog>" command.1. If no options are specified, it displays all information
as listed in -d option.
The handles are displayed in ascending order with respect to their connect-times.
Default Value
NULL
Success
OK
Error 1. Invalid argument
Type socket listlisten ? for more information
2. Multiple matches
listall listlisten
Command Syntax socket listall [-s] [-d]
Description -s : When the socket-only option is specified, it displays information about all the
active sockets opened by the host device.
-d : When the socket-detail option is specified, it displays all socket-only option
information along with all the active sockets Local IP address, Local Port,
Remote IP address, Remote Port, etc.
The displayed handles are limited to backlog specified in "socket tcplisten <listen-
port> <backlog>" command.
Note: If no options are specified, it displays all -d option information.
Default Value
-
Success
OK.
Error 1. Invalid argument
Type socket listall ? for more information
2. Multiple matches
listall
listlisten
Command Syntax socket send <[-s <size>] [-d <delimiter>]>
[-m <MTU>] <socket_handle>
Description
Validates the specified socket handle (corresponds to TCP or UDP socket) and
waits for the data stream. .
If delim parameter (char) is specified, the host can enter the data and the IP Module
flushes the data as soon as it detects the specified delimiter character.
If the size parameter is specified, the IP Module waits for the specified size bytes to
send to the socket's output buffer.
If the optional mtu parameter is not specified, the data is flushed immediately.
If the mtu parameter is specified, the data stream is flushed in integral multiples of
specified value (Maximum value being MTU size).
Notes:
1. Either delim or size should be specified by the host device.
2. If the mtu pktlen (packet length) is given more than the data stream sent, it
waits until
a.) it reaches the mtu size or
b.) the delim matches or
c.) the size specified by the user to flush the socket buffer is reached.
Default Value
-
Success
OK
Error 1. Invalid Socket handle
2. Option missing
3. Connection refused
Send: Connection refused
0-bytes sent.
Vista de pagina 61
1 2 ... 57 58 59 60 61 62 63 64 65 66 67 ... 153 154

Comentarios a estos manuales

Sin comentarios