Sample SOCKETS applications are included on the installation media.
The samples demonstrate use of most of the functions through a simple interactive application.
What is provided
menus filePro folder |
~/filepro/menus |
tcpip Menu |
TCPIP filePro folder |
~/filepro/tcpip |
tcpip sample |
TCP/IP filePro folder |
~/filepro/tcpiphlp |
Contains this help. |
Select the appropriate install for your system from the source media.
WINDOWS:
Click on Start, Run and d:\setup.exe where d: is your CD drive letter. After setup is complete, copy ~/filepro/menus/tcpip to ~/fp/menus or other 'menus' directory as set by the pfmenu environment variable.
AIX/UNIX/LINUX:
tar xvf fPtcpip
After extracting the files, copy ~/filepro/menus/tcpip to ~/fp/menus or other 'menus' directory as set by the pfmenu environment variable.
Run setperms script establish proper permissions.
Note: You can elect to install the TCPIP Server and Client on different operating systems, on different machines with the same operating system or on a single machine.
Run the tcpip menu from the 'Run User Menu' option of the filePro main menu.
After completing the installation, you will need to know the IP address of the machine where you intend to run the TCPIP Server.
The sample application should be run initially from the Menu but if you can also run from a prompt. The sample application uses the dclerk, input processing and screen.0
The menu provides options for launching TCP/IP Server, TCP/IP Client and this help. The same filePro file 'tcpip', processing table and screen is used for the Server and Client. The menu simply uses a menu parameter to control which is launched for each option.
When selecting the TCPIP Server from the menu, you will see a prompt "Enter port number to listen on:". Enter a port number ie. 4300 and then you should see message "Waiting for Connection on port nnnn ..."
Note: For Windows, you can use "localhost" or IP address "127.0.0.1".
After the TCPIP server is listening, select the TCPIP client option from the menu on the client machine or launch another session on the localhost machine if you are running in localhost mode. When prompted enter the Server IP address or localhost (127.0.0.1) if testing in local mode. Enter the port number you specified when launching the TCPIP server.
If all has gone well, you should see the Server and Client connect. Once connected, you can send messages between the Server and Client. Received text is displayed in reverse video mode on both the Server and Client. You should be able to type anything into the screen on either machine and have it echoed on the other.
Press key [F1] to exit and shutdown the socket connection.
For more detail, look at the "input" processing for file 'tcpip' and refer to function descriptions in the filePro TCPIP help.