Top Description Methods
org.newsclub.net.unix

public Interface AFSocketExtensions

Known Direct Subinterfaces
org.newsclub.net.unix.AFUNIXSocketExtensions, org.newsclub.net.unix.AFGenericSocketExtensions
Known Direct Implementers
org.newsclub.net.unix.AFDatagramChannel, org.newsclub.net.unix.AFDatagramSocket, org.newsclub.net.unix.AFSocket, org.newsclub.net.unix.AFSocketChannel

Defines certain methods that all junixsocket socket implementations share and extend beyond the standard socket API. The set of features include methods to support working with ancillary messages (such as file descriptors) as well as socket credentials. Keep in mind that the platform this code runs on may not support these features, and exceptions may be thrown when not checking for the corresponding AFSocketCapability first.
Author
Christian Kohlschütter

Method Summary

Modifier and TypeMethod and Description
public void
ensureAncillaryReceiveBufferSize(int
The minimum size (in bytes).
minSize
)

Ensures a minimum ancillary receive buffer size.

public int

Returns:

The size.
getAncillaryReceiveBufferSize
()

Returns the size of the receive buffer for ancillary messages (in bytes).

public void
setAncillaryReceiveBufferSize(int
The size.
size
)

Sets the size of the receive buffer for ancillary messages (in bytes).

Method Detail

ensureAncillaryReceiveBufferSizeback to summary
public void ensureAncillaryReceiveBufferSize(int minSize)

Ensures a minimum ancillary receive buffer size.

Parameters
minSize:int

The minimum size (in bytes).

getAncillaryReceiveBufferSizeback to summary
public int getAncillaryReceiveBufferSize()

Returns the size of the receive buffer for ancillary messages (in bytes).

Returns:int

The size.

setAncillaryReceiveBufferSizeback to summary
public void setAncillaryReceiveBufferSize(int size)

Sets the size of the receive buffer for ancillary messages (in bytes). To disable handling ancillary messages, set it to 0 (default).

Parameters
size:int

The size.