| Modifier and Type | Field and Description |
|---|---|
| private static final AFSocket. |
| Access | Constructor and Description |
|---|---|
| private | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | clearReceivedFileDescriptors()
Implements org. Clears the queue of incoming |
| public static AFUNIXSocket | Returns: A new, connected socket.The address to connect to. addr)Creates a new |
| public AFUNIXSocketChannel | getChannel()
Overrides org. Returns the unique |
| 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 boolean | Returns: true iff supported.Hides org. Returns |
| public static void | |
| private static void | |
| protected AFUNIXSocketChannel | newChannel()
Implements abstract org. Creates a new |
| public static AFUNIXSocket | |
| pack-priv static AFUNIXSocket | |
| pack-priv static AFUNIXSocket | |
| pack-priv static AFUNIXSocket | |
| public static AFUNIXSocket | |
| public void | setOutboundFileDescriptors(FileDescriptor...
The file descriptors, or fdescs)null if none.Implements org. Sets a list of |
| CONSTRUCTOR_STRICT | back to summary |
|---|---|
| private static final AFSocket. | |
| AFUNIXSocket | back to summary |
|---|---|
| private AFUNIXSocket(AFSocketImpl<AFUNIXSocketAddress> impl, AFSocketFactory<AFUNIXSocketAddress> factory) throws SocketException | |
| AFUNIXSocket | back to summary |
|---|---|
| pack-priv AFUNIXSocket(FileDescriptor fd, AFSocketFactory<AFUNIXSocketAddress> factory) throws SocketException | |
| clearReceivedFileDescriptors | back to summary |
|---|---|
| public void clearReceivedFileDescriptors() Implements org. Doc from org. Clears the queue of incoming
| |
| connectTo | back to summary |
|---|---|
| public static AFUNIXSocket connectTo(AFUNIXSocketAddress addr) throws IOException Creates a new
| |
| getChannel | back to summary |
|---|---|
| public AFUNIXSocketChannel getChannel() Overrides org. Doc from java. Returns the unique A socket will have a channel if, and only if, the channel itself was
created via the
| |
| 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
| |
| isSupported | back to summary |
|---|---|
| public static boolean isSupported() Hides org. Returns
| |
| main | back to summary |
|---|---|
| public static void main(String[] args) Very basic self-test function. Prints "supported" and "capabilities" status to System.out.
| |
| miniSelftest | back to summary |
|---|---|
| private static void miniSelftest() | |
| newChannel | back to summary |
|---|---|
| protected AFUNIXSocketChannel newChannel() Implements abstract org. Doc from org. Creates a new
| |
| newInstance | back to summary |
|---|---|
| public static AFUNIXSocket newInstance() throws IOException Creates a new, unbound
| |
| newInstance | back to summary |
|---|---|
| pack-priv static AFUNIXSocket newInstance(FileDescriptor fdObj, int localPort, int remotePort) throws IOException | |
| newInstance | back to summary |
|---|---|
| pack-priv static AFUNIXSocket newInstance(AFUNIXSocketFactory factory) throws SocketException | |
| newLenientInstance | back to summary |
|---|---|
| pack-priv static AFUNIXSocket newLenientInstance() throws IOException | |
| newStrictInstance | back to summary |
|---|---|
| public static AFUNIXSocket newStrictInstance() throws IOException Creates a new, unbound, "strict"
| |
| 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.
| |