
TCP/IP Networking
Here are the BASIC functions and statements relating to TCP/IP networking.
Commands for triggering the TCPIP event: OFF TCPIP, ON TCPIP GOSUB...
DNS_RESOLVER
Purpose
To get the IP address of the remote device.
Syntax
IP$ = DNS_RESOLVER(A$)
Remarks
Note that it is necessary to define the DNS server IP before executing this
command.
"IP$" is a string variable to be assigned to the result.
"A$" is a string variable, indicating a specific domain name.
Example
GetIP$ = DNS_RESOLVER ("www.yahoo.com")
See Also
TCP_ERR_CODE
GET_TCPIP_MESSAGE
Purpose
To get the message of TCPIP event trigger.
Syntax
A% = GET_TCPIP_MESSAGE
Remarks
This command can also be called in normal program to detect the TCP/IP status by
polling method. Once it is fetched, the message will be cleared by the system.
When entering TCPIP event trigger, the first thing is to call this routine so that the
trigger message will be cleared out.
"A%" is an integer variable to be assigned to the result.
Value Meaning
4000
4001
4002
4003
4014
4015
Connection #0 overflow
Connection #1 overflow
Connection #2 overflow
Connection #3 overflow
Networking initialization error
Port initialization error
Comentarios a estos manuales