Previous: Sockets.AbstractSocketImpl-socket operations, Up: Sockets.AbstractSocketImpl [Index]
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.
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.
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.
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.
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.
Set whether another socket can be bound the same local address as this one.
Evaluate aBlock, ensuring that any data that it writes to the socket is sent immediately to the network.
Previous: Sockets.AbstractSocketImpl-socket operations, Up: Sockets.AbstractSocketImpl [Index]