Module network:udp - UDP conections to networking service
UDP conections to networking service
Index
-
Constant
MAX.UDP.PORT- The number of UDP ports possible -
Constant
MAX.UDP.WORKERS- The maximum number of UDP workers at any one time -
Protocol
UDP.DATAGRAM- A UDP datagram, tagged with address and port -
Protocol
UDP.REQUEST- Control UDP service-
Tag
open- Open a UDP port
-
Tag
-
Protocol
UDP.RESPONSE- Response from udp service-
Tag
failure- Request failed -
Tag
success- Request succeded
-
Tag
-
Constant
UDP.SEARCH.START- Where to start allocating port numbers from if 0 is requested -
Channel type
UDP.SOCKET- Two way link with udp.server-
Variable
close?- Close used to return the socket so the worker can be reused -
Variable
in!- Recieved datagrams from network -
Variable
out?- Send datagrams to network
-
Variable
Declarations
udp.inc:37Constant MAX.UDP.WORKERS
VAL INT MAX.UDP.WORKERS
The maximum number of UDP workers at any one time.
udp.inc:40Constant MAX.UDP.PORT
VAL INT MAX.UDP.PORT
The number of UDP ports possible.
udp.inc:43Constant UDP.SEARCH.START
VAL INT UDP.SEARCH.START
Where to start allocating port numbers from if 0 is requested.
udp.inc:53Protocol UDP.DATAGRAM
PROTOCOL UDP.DATAGRAM IS INT32 ; INT16 ; MOBILE []BYTE:
A UDP datagram, tagged with address and port.
Parameters:
INT32 |
address |
|
INT16 |
port |
|
MOBILE []BYTE |
contents |
udp.inc:58Channel type UDP.SOCKET
RECURSIVE CHAN TYPE UDP.SOCKET
Two way link with udp.server.
udp.inc:61Variable close?
CHAN UDP.SOCKET!
Close used to return the socket so the worker can be reused.
udp.inc:63Variable out?
CHAN UDP.DATAGRAM
Send datagrams to network.
udp.inc:65Variable in!
CHAN UDP.DATAGRAM
Recieved datagrams from network.
udp.inc:71Protocol UDP.REQUEST
PROTOCOL UDP.REQUEST
Control UDP service.
udp.inc:75Tag open
open ; INT16
Open a UDP port.
Parameters:
INT16 |
port |
Port = 0 implies don't care. |
udp.inc:81Protocol UDP.RESPONSE
PROTOCOL UDP.RESPONSE
Response from udp service.
udp.inc:86Tag success
success ; INT16 ; UDP.SOCKET!
Request succeded.
Parameters:
INT16 |
portnumber |
Localport number. |
UDP.SOCKET! |
socket |
The socket. |
udp.inc:88Tag failure
failure
Request failed.