| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | clearReceivedFileDescriptors()
Implements org. Clears the queue of incoming |
| public AFUNIXSocketCredentials | getPeerCredentials()
Implements org. Retrieves the "peer credentials" for this connection. |
| public FileDescriptor[] | getReceivedFileDescriptors()
Implements org. Retrieves an array of incoming Note Another call to this method will not return the same file descriptors again (most likely, an empty array will be returned). |
| public boolean | hasOutboundFileDescriptors()
Implements org. Returns |
| public static AFUNIXSocketChannel | |
| public static AFUNIXSocketChannel | Returns: The new channelThe socket address to connect to. remote)Hides java. Opens a socket channel, connecting to the given socket address. |
| public void | setOutboundFileDescriptors(FileDescriptor...
The file descriptors, or fdescs)null if none.Implements org. Sets a list of |
| AFUNIXSocketChannel | back to summary |
|---|---|
| pack-priv AFUNIXSocketChannel(AFUNIXSocket socket) | |
| clearReceivedFileDescriptors | back to summary |
|---|---|
| public void clearReceivedFileDescriptors() Implements org. Doc from org. Clears the queue of incoming
| |
| getPeerCredentials | back to summary |
|---|---|
| public AFUNIXSocketCredentials getPeerCredentials() throws IOException Implements org. Doc from org. Retrieves the "peer credentials" for this connection.
These credentials may be useful to authenticate the other end of the socket (client or server).
Depending on the socket/connection/environment, you may not receive any or all credentials. For
example, on Linux,
| |
| getReceivedFileDescriptors | back to summary |
|---|---|
| public FileDescriptor[] getReceivedFileDescriptors() throws IOException Implements org. Doc from org. Retrieves an array of incoming Note Another call to this method will not return the same file descriptors again (most likely, an empty array will be returned).
| |
| hasOutboundFileDescriptors | back to summary |
|---|---|
| public boolean hasOutboundFileDescriptors() Implements org. Doc from org. Returns
| |
| open | back to summary |
|---|---|
| public static AFUNIXSocketChannel open() throws IOException Hides java. Opens a socket channel.
| |
| open | back to summary |
|---|---|
| public static AFUNIXSocketChannel open(SocketAddress remote) throws IOException Hides java. Opens a socket channel, connecting to the given socket address.
| |
| setOutboundFileDescriptors | back to summary |
|---|---|
| public void setOutboundFileDescriptors(FileDescriptor... fdescs) throws IOException Implements org. Doc from org. Sets a list of Important Note There can only be one set of file descriptors active until the write completes. The socket also needs to be connected for this operation to succeed. It is also important to know that there may be an upper limit imposed by the operation system as to how many file descriptors can be sent at once. Linux, for example, may support up to 253. If the number of file descriptors exceeds the limit, an exception may be thrown when sending data along with the ancillary message containing the file descriptors.
| |