<*+ CSTDLIB  *>
<*- NOHEADER *>
<*+ M2EXTENSIONS *>

DEFINITION MODULE ["C"] udp;

PROCEDURE openudp():INTEGER;
PROCEDURE bindudp(fd:INTEGER; port:CARDINAL):INTEGER;
PROCEDURE socknonblock(fd:INTEGER):INTEGER;
PROCEDURE udpreceive(fd:INTEGER; VAR data:ARRAY OF CHAR; len:INTEGER; VAR fromport, fromip:CARDINAL):INTEGER;
PROCEDURE udpreceiveblock(fd:INTEGER; VAR data:ARRAY OF CHAR; len:INTEGER; VAR fromport, fromip:CARDINAL):INTEGER;
PROCEDURE udpsend(fd:INTEGER; VAR data:ARRAY OF CHAR; len:INTEGER; toport, toip:CARDINAL):INTEGER;

END udp.
