Socket Status Read - Omron CJ1W-ETN11 Operation Manual

Sysmac cs/cj series ethernet units
Hide thumbs Also See for CJ1W-ETN11:
Table of Contents

Advertisement

Command/Response Reference

11-3-25 SOCKET STATUS READ

Command Block
Response Block
Parameters
Socket Status (Response)
Reads the Ethernet Unit network socket status.
27
64
Command
code
27
64
32 bytes
Command
Response
Socket
code
code
status
Returns eight types of information in records of 32 bytes each. A maximum of
64 records can be returned. The format of each record is shown below.
Protocol (4 bytes)
The protocol used for the socket is returned as a number.
00 00 00 06: TCP; 00 00 00 11: UDP
Receive Queue (4 bytes)
The number of bytes in the reception queue.
Send Queue (4 bytes)
The number of bytes in the send queue.
Local IP Address (4 bytes)
The local IP address allocated to the socket.
Local Port Number (4 bytes)
The local port number allocated to the socket.
Remote IP Address (4 bytes)
The remote IP address allocated to the socket.
Remote Port Number (4 bytes)
The remote port number allocated to the socket.
TCP Transitions (4 bytes)
The TCP connection status is returned as one of the numbers shown in the
following table. Refer to Appendix D TCP Status Transitions for a diagram of
transitions.
Number
Stage
00 00 00 00
CLOSED
00 00 00 01
LISTEN
00 00 00 02
SYN SENT
00 00 00 03
SYN RECEIVED SYN received and sent.
00 00 00 04
ESTABLISHED
00 00 00 05
CLOSE WAIT
00 00 00 06
FIN WAIT 1
00 00 00 07
CLOSING
00 00 00 08
LAST ACK
00 00 00 09
FIN WAIT 2
00 00 00 0A TIME WAIT
32 bytes
Socket
status
Status
Closed.
Waiting for connection.
SYN sent in active status.
Already established.
Received FIN, waiting to close.
Completed and FIN sent.
Completed and exchanged FIN. Awaiting ACK.
FIN sent and completed. Awaiting ACK.
Close completed and ACK received. Awaiting FIN.
After closing, pauses twice the maximum segment
life (2MSL).
Section 11-3
247

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-etn11Cs/cj seriesCs1w-etn01W343-e1-07

Table of Contents