6.2.10 Sockets.AbstractSocketImpl: socket options
- optionAt: opt level: level put: anObject
- Modify the value of a socket option. The option identifier is in
`opt' and the level is in `level'. anObject can be a boolean,
integer, socket address or ByteArray. A layer over this method is
provided for the most common socket options, so this will be rarely
used.
- optionAt: opt level: level size: size
- Answer in a ByteArray of the given size the value of a socket option.
The option identifier is in `opt' and the level is in `level'. A
layer over this method is provided for the most common socket options,
so this will be rarely used.
- soLinger
- Answer the number of seconds by which a `close' operation can block
to ensure that all the packets have reliably reached the destination,
or nil if those packets are left to their destiny.
- soLinger: linger
- Set the number of seconds by which a `close' operation can block
to ensure that all the packets have reliably reached the destination.
If linger is nil, those packets are left to their destiny.
- soReuseAddr
- Answer whether another socket can be bound the same local address as this
one. If you enable this option, you can actually have two sockets with the
same Internet port number; but the system won't allow you to use the two
identically-named sockets in a way that would confuse the Internet. The
reason for this option is that some higher-level Internet protocols,
including FTP, require you to keep reusing the same socket number.
- soReuseAddr: aBoolean
- Set whether another socket can be bound the same local address as this one.
- valueWithoutBuffering: aBlock
- Evaluate aBlock, ensuring that any data that it writes to the socket
is sent immediately to the network.