jnr.unixsocket
Class UnixSocketChannel
java.lang.Object
java.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.SelectableChannel
java.nio.channels.spi.AbstractSelectableChannel
jnr.enxio.channels.NativeSocketChannel
jnr.unixsocket.UnixSocketChannel
- All Implemented Interfaces:
- Closeable, ByteChannel, Channel, InterruptibleChannel, ReadableByteChannel, WritableByteChannel, jnr.enxio.channels.NativeSelectableChannel
public class UnixSocketChannel
- extends jnr.enxio.channels.NativeSocketChannel
A Channel
implementation that uses a native unix socket
Methods inherited from class jnr.enxio.channels.NativeSocketChannel |
getFD, implCloseSelectableChannel, implConfigureBlocking, read, shutdownInput, shutdownOutput, validOps, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
open
public static final UnixSocketChannel open()
throws IOException
- Throws:
IOException
open
public static final UnixSocketChannel open(UnixSocketAddress remote)
throws IOException
- Throws:
IOException
pair
public static final UnixSocketChannel[] pair()
throws IOException
- Throws:
IOException
connect
public boolean connect(UnixSocketAddress remote)
throws IOException
- Throws:
IOException
isConnected
public boolean isConnected()
isConnectionPending
public boolean isConnectionPending()
finishConnect
public boolean finishConnect()
throws IOException
- Throws:
IOException
getRemoteSocketAddress
public final UnixSocketAddress getRemoteSocketAddress()
getLocalSocketAddress
public final UnixSocketAddress getLocalSocketAddress()
Copyright © 2012. All Rights Reserved.