Module network:udp - UDP conections to networking service

UDP conections to networking service

Index

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.