Start Back Next End
  
ZBasic System Library
ZBasic Microcontrollers
30
Net.Listen
Type
Function returning Integer
Invocation
Net.Listen(handle, port, protocol)
Parameter
Method
Type
Description
handle
ByVal
anyIntegral
The handle, previously returned by Net.Open(), to use.
port
ByVal
anyIntegral
The port number to use.
protocol
ByVal
anyIntegral
The protocol indicator.
Discussion
This function causes the device to begin waiting for a connection request on the indicated port number for
the given protocol (see the table below).
Protocol Designators
Value
Meaning
0
Use the TCP protocol.
1
Use the UDP protocol.
The return value will be zero if successful, negative otherwise.  If a callback has been associated with the
network handle, the callback will be invoked when a remote host establishes a connection.
Previous page Top Next page