67
Chapter 7
It remarks the function of htons(n), the parameter n means the TCP Port
in server application and It helps the programmer to make his own
program easier by referencing the note we provided.
It remarks the function of socket(AF_INET, SOCK_STREAM, 0), the
function of socket(var1,var2,n) means to create the socket of TCP on
Host. Programmer can also create the socket of TCP on the Host by
himself.
edgevtio.dsp
Programmers can choose the develop tools for themselves. For example,
in edgevtio.dsp file, the extension file name .dsp means Microsoft
Developer Studio Project File. Programmer can open the file as a tem-
plate to create their own programs.
edgevtio.dsw
File name of edgevtio means EDG Event I/O, extension name of dsw
means it is a Microsoft Developer Studio Workspace file. This file is
necessary when you open a Developer Studio Project and we make a
warning note in file to reminder you not to modify or delete this related
workspace file.
memset(&HostAddr, 0, sizeof(SOCKADDR_IN));
HostAddr.sin_family = AF_INET;
HostAddr.sin_addr.s_addr = INADDR_ANY;
HostAddr.sin_port = htons(5000);
// |
// +-->The TCP Port in the server application
HostSock = socket(AF_INET, SOCK_STREAM, 0);
// |
// +-->Create the socket of TCP on the Host
Содержание EDG-4508+
Страница 7: ...2 CHAPTER 1 Overview ...
Страница 10: ...EDG 4508 R 4516 R User Manual 4 ...
Страница 11: ...2 CHAPTER 2 Getting Started ...
Страница 15: ...9 Chapter2 Figure 2 4 EDG 4508 4516 LED Indicators and Connectors Figure 2 5 EDG 4508R 4516R LED Indicators ...
Страница 18: ...EDG 4508 R 4516 R User Manual 12 2 2 1 Rack Mounting Figure 2 8 Rack Mounting ...
Страница 26: ...EDG 4508 R 4516 R User Manual 20 ...
Страница 27: ...2 CHAPTER 3 Configuration ...
Страница 40: ...EDG 4508 R 4516 R User Manual 34 ...
Страница 41: ...2 CHAPTER 4 Port Mapping Utility ...
Страница 51: ...2 CHAPTER 5 Web Based Configuration ...
Страница 57: ...2 CHAPTER 6 Console Configuration ...
Страница 66: ...EDG 4508 R 4516 R User Manual 60 ...
Страница 67: ...2 CHAPTER 7 Event and DI O Monitoring ...
Страница 75: ...2 CHAPTER 8 Troubleshooting ...
Страница 78: ...EDG 4508 R 4516 R User Manual 72 ...
Страница 79: ...2 APPENDIX A ...
Страница 81: ...75 AppendixA RS 422 RS 485 Pin No Description 1 Tx 4 Tx 5 GND 7 Rx 9 Rx Pin No Description 1 DATA 4 DATA 5 GND ...
Страница 82: ...EDG 4508 R 4516 R User Manual 76 ...