Next: , Previous: , Up: Networking Support   [Contents][Index]


10.8 Unix Datagrams

Datagram network is supported with the following functions.

Function: extensions:inet-recvfrom fd buffer size &key :flags

A simple interface to the Unix recvfrom function. Returns three values: bytecount, source address as integer, and source port. Bytecount can of course be negative, to indicate faults.

Function: extensions:inet-sendto fd buffer size addr port &key :flags

A simple interface to the Unix sendto function.

Function: extensions:inet-shutdown fd level

A simple interface to the Unix shutdown function. For level, you may use the following symbols to close one or both ends of a socket: shut-rd, shut-wr, shut-rdwr.