Previous: , Up: Sockets.Datagram   [Index]


6.5.2 Sockets.Datagram: accessing

address

Answer the address of the target socket

address: ipAddress

Set the address of the target socket

data

Answer the data attached to the datagram

data: aByteArray

Set the data attached to the datagram

dataSize

Answer the size of the message.

dataSize: aSize

I am called to update the size...

get

Parse the data attached to the datagram through a newly created ObjectDumper, and answer the resulting object. This method is complementary to #object:address:port:.

getThrough: objectDumper

Parse the data attached to the datagram through the given ObjectDumper without touching the stream to which it is attached, and answer the resulting object. The state of the ObjectDumper, though, is updated. This method is complementary to #object:objectDumper:address:port:.

port

Answer the IP port of the target socket

port: thePort

Set the IP port of the target socket

size

I determine the size of the datagram. It is either an explicitly specified dataSize, or the size of the whole collection.