Chapter 17. TCP/IP
363
[ 2 ] Configure TCP/IP System
To connect to the TCP/IP pathway, specify the following system settings by using the
extension library SOCKET.FN3 in a user program:
• IP address
• Subnet mask
• Default gateway
• PPP authentication procedure
• User name for PPP authentication
• Password for PPP authentication
These settings will be used in [ 4 .]
For the details of the SOCKET.FN3, refer to Section 17.5 "Socket Library (SOCKET.FN3)."
Given below is a setting example with SOCKET.FN3:
my.addr$ = "192.168.0.125" 'IP address of the BHT
subnetmask$ = "255.255.255.0" 'Subnet mask
gateway$ = "0.0.0.0" 'Default gateway
ppp.auth% = .soPPPPAP 'PPP authentication procedure
ppp.usr$ = "USER" 'User name for PPP
ppp.psw$ = "PASSWORD" 'Password for PPP
para% = 1 'Specify IP address (#1)
call "socket.fn3" .fcTSysSet para%, my.addr$
para% = 2 'Specify subnet mask (#2)
call "socket.fn3" .fcTSysSet para%, subnetmask$
para% = 3 'Specify default gateway (#3)
call "socket.fn3" .fcTSysSet para%, gateway$
para% = 4 'Specify PPP authentication (#4)
call "socket.fn3" .fcTSysSet para%, ppp.auth%
para% = 5 'Specify User name for PPP (#5)
call "socket.fn3" .fcTSysSet para%, ppp.usr$
para% = 6 'Specify Password for PPP (#6)
call "socket.fn3" .fcTSysSet para%, ppp.psw$
Komentarze do niniejszej Instrukcji