Next: , Previous: , Up: Sockets.DatagramSocket   [Index]


6.6.4 Sockets.DatagramSocket: accessing

address

Answer the local address.

bufferSize

Answer the size of the buffer in which datagrams are stored.

bufferSize: size

Set the size of the buffer in which datagrams are stored.

datagramClass

Answer the class used by the socket to return datagrams.

next

Read a datagram on the socket and answer it.

nextPut: aDatagram

Send the given datagram on the socket.

peek

Peek for a datagram on the socket and answer it.

peek: datagram

Peek for a datagram on the socket, store it in ‘datagram’, and answer the datagram itself.

port

Answer the local port.

receive: datagram

Read a datagram from the socket, store it in ‘datagram’, and answer the datagram itself.