Start Back Next End
  
ZBasic System Library
ZBasic Microcontrollers
32
Net.RemoteHost
Type
Function returning Integer
Invocation
Net.RemoteHost(handle, ipAddr, port)
Net.RemoteHost(handle, ipAddr)
Parameter
Method
Type
Description
handle
ByVal
anyIntegral
The handle, previously returned by Net.Open(), to use.
port
ByRef
UnsignedLong
The IP address of the remote host.
protocol
ByRef
UnsignedInteger
The remote port.
Discussion
This function determine the IP address and, optionally, the port of the remote host that is party to an
existing connection.  The return value will be zero if the parameters of the remote host were successfully
determine and a negative value otherwise.  This function is most useful when the ESP8266 is listening for
a connection.  The returned IP address can then be used to control the response.
Previous page Top Next page