ev_tcp_receive

Purpose:

Receive TCP/IP messages from remote networks and set specified CyFlex events based on the message content. 

Enter:

ev_tcp_receive  [subnetMask] [–log ] 

ev_tcp_receive can be started by typing the program name, or optionally by typing the program name plus subnet mask. This option allows ev_tcp_receive to filter client notes from which it can receive sent event.

The subnet mask follows the usual format for IP version4. A system error will occur in the execution if the value of the IP in any of the octets is more than the permitted 255 or is invalid.

Where:

subnetMask Optional. Specify a string representing the subnet mask (e.g., “198.201.0.0”) for filtering client IP addresses. 
–log Optional. Specify this option to enable logging to a timestamped file in /data/errors/.

Example:

For a host within a network with IP address 198.201.78.5, the subnet mask typed at the prompt can be any of the following:

198.0.0.0 —-> This allows all client nodes having 198 in the first octet
198.201.0.0 —-> This allows only clients with IP addresses matching the first two octets
198.201.78.0 —-> Allows only clients with IP addresses matching the first three octets

The program can then be launched by typing any of the following kinds of option:

ev_tcp_receive //for default execution only
ev_tcp_receive 198.201.0.0
ev_tcp_receive 198.201.78.0

Notes:

The program runs indefinitely and should be executed in the background. Invalid subnet masks will result in errors and prevent socket creation.

See Also:

Cummins SharePoint: Sending Message Events between CyFlex Systems, ev_tcp_specs