Previous: , Up: Sockets.DatagramSocketImpl   [Index]


6.7.4 Sockets.DatagramSocketImpl: socket operations

next

Retrieve a datagram from the receiver, answer a new object of the receiver’s datagram class.

nextPut: aDatagram

Send aDatagram on the socket

peek

Peek for a datagram on the receiver, answer a new object of the receiver’s datagram class.

peek: aDatagram

Peek for a datagram on the receiver, answer aDatagram modified to contain information on the newly received datagram.

receive: aDatagram

Retrieve a datagram from the receiver, answer aDatagram modified to contain information on the newly received datagram.

receive: flags datagram: aDatagram

Receive a new datagram into ‘datagram’, with the given flags, and answer ‘datagram’ itself; this is an abstract method. The flags can be zero to receive the datagram, or ‘self msgPeek’ to only peek for it without removing it from the queue.

send: aDatagram to: theReceiver port: port

Send aDatagram on the socket to the given receiver and port