beautypg.com

ProSoft Technology MVI56E-LDM User Manual

Page 62

background image

Understanding the MVI56-LDM API

ControlLogix Platform ♦ "C" Programmable

Developer's Manual

Linux Application Development Module

Page 56 of 264

ProSoft Technology, Inc.

March 12, 2014

4.17 Ethernet Communications Sample

The Ethernet Communications program illustrates how to interact with the
MVI56E-LDM using both of its Ethernet ports as both a server and a client
communicating through the backplane to send and receive data. The sample
also uses multi-threading in order to run as both a server and client
asynchronously.
Two computers are recommended with TCP Stress Tester within two separate
subnets.

First Computer
Set up TCP Stress Tester as a server:

Port: 5000

Connection: TCP

Send Speed: Single

Type: Server

Subnet Example:

10.1.3.x

(or default 192.168.0.250)

Select Open and allow the TCP Stress Tester to listen once the sample program
launches.

Second Computer
Set up TCP Stress Tester as a client:

Port: 6000

Connection: TCP

Send Speed: Single

Type: Client

Subnet Example:

10.1.2.x

(or default 192.168.1.250).