
Programming Examples
LAN Programming Examples
Chapter 2 71
The int main1() function will output a sequence of commands in a program format. If you
want to run a program using a sequence of commands then perform the following:
1. Enter the hostname of your signal generator in the openSocket function of the main1()
function of the lanio.c program
2. Rename the lanio.cpp int main1() function to int main() and the original int main()
function to int main1().
3. Select
Rebuild All from Build menu. Then select Execute Lanio.exe.
The program will run and display the results as shown in Figure 2-1.
Figure 2-1 Program Output Screen
Komentarze do niniejszej Instrukcji