Using Socket Services With Socket Service Request Switches - Omron CS1W-ETN11 Operation Manual

10base-5, 10base-t ethernet units
Hide thumbs Also See for CS1W-ETN11:
Table of Contents

Advertisement

Using Socket Services with Socket Service Request Switches

Precautions in Using
Socket Service Request
Switches
6-2
Using Socket Services with Socket Service Request
Switches
112
• Data can remain in a buffer at the local node if the remote TCP socket
closes during communications. Any data remaining in the buffer will be
discarded when the TCP socket is closed. To avoid problems of this
nature, steps will have to be taken in the application program, such as
sending data to enable closing, and then only closing once reception of
this data has been confirmed.
• When closing a connection for a TCP socket, the first port to be closed
cannot be reopened for at least 60 seconds after the other port closes.
However, this restriction does not apply for a port opened using the TCP
ACTIVE OPEN REQUEST command with a local TCP port number of 0
(port number automatically assigned) which is closed from the side that
actively opened the socket.
• A connection is established for a passively opened socket by actively
opening it from another socket. You cannot actively open multiple connec-
tions to a socket passively opened at the Ethernet Unit.
• The Ethernet Unit TCP sockets have no KEEP ALIVE function to check
that the connection is normal if communications do not occur for a set
time period through a communications line for which a connection has
been established. The Ethernet Unit's TCP sockets make no checks to
the socket at the other node. Checks made by the remote node, however,
are received as responses, so that it is not necessary for the user pro-
gram to consider the KEEP ALIVE function.
• Send and reception processing can not be performed at the same time
when Socket Service Request Switches are used for socket services
because there is only one Socket Service Parameter Area for each
socket. For example, if the Send Request Switch is turned ON when data
is being received, the response code will be 110C Hex, indicating that a
Request Switch was turned ON during communications processing. (The
response code for the reception will overwrite this code when processing
has been completed.)
• If more than one Request Switch is turned ON simultaneously, the
response code will be 110C Hex and all requested processing will end in
an error.
• Close processing can be performed, however, even during open, send, or
receive processing. This enables emergency close processing. Also, the
only parameter required for close processing is the socket number, so a
socket can be closed even when parameters are set for another process.
Socket services can be used by setting the parameters in a Socket Service
Parameter Area in the CPU Bus Unit Area and then turning ON a Socket Ser-
vice Request Switch.
When using Socket Service Request Switches, a maximum of 8 sockets can
be opened simultaneously for the UDP and TCP combined. Also, the same
socket number cannot be used simultaneously for both UDP and TCP. (There
is only one Socket Service Parameter Area for each socket, i.e., the same
area must be used for both UDP and TCP.)
Section 6-2

Advertisement

Table of Contents
loading

Table of Contents