AFUNIXSocketCapability first.
| Modifier and Type | Method and Description |
|---|---|
| public void | clearReceivedFileDescriptors()
Clears the queue of incoming |
| public AFUNIXSocketCredentials | Returns: The peer's credentials, ornull if they couldn't be retrieved.Retrieves the "peer credentials" for this connection. |
| public FileDescriptor[] | Returns: The file descriptors, or an empty array if none were available.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 | Returns: true if there are file descriptors pending.Returns |
| public void | setOutboundFileDescriptors(FileDescriptor...
The file descriptors, or fdescs)null if none.Sets a list of |
| clearReceivedFileDescriptors | back to summary |
|---|---|
| public void clearReceivedFileDescriptors() Clears the queue of incoming | |
| getPeerCredentials | back to summary |
|---|---|
| public AFUNIXSocketCredentials getPeerCredentials() throws IOException 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 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() Returns
| |
| setOutboundFileDescriptors | back to summary |
|---|---|
| public void setOutboundFileDescriptors(FileDescriptor... fdescs) throws IOException 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.
| |