
HAN Pilot Platform
Demonstration Manual
60
www.terasic.com
September 6, 2019
Here is the procedure to start the socket client program and communicate with the client server
program:
1.
Make sure the SoC EDS is installed on your Windows and the Windows is connected to a
network.
2.
Copy the client program (windows/socket_client/socket_client.exe) in the example kit to your
Windows.
3.
Launch the SoC EDS Command Shell.
4.
In the command shell, change the current directory to the directory where socket_client.exe is
located.
5.
Then, type “./socket_client <ip address> 2020” to launch the client program to connect to the
host server with port number 2020 as shown in
Figure 3-24 Start Client Program
6.
If connection is established successfully, a prompt message “Please enter the message.” will
appear. Type “hello”, then an echo message “I got your message” will be sent from the client
server and shown on terminal as shown in
. At the same time, the socket server
program will dump the received message at which point it is terminated as shown in
Figure 3-25 Send Message in Client Program
Figure 3-26 Server dumps received message