boolean isBound() { return bindHandler.isBound(); }
UnixSocketChannel(int fd, State initialState, boolean initialBoundState) { super(fd); stateLock.writeLock().lock(); state = initialState; bindHandler = new BindHandler(initialBoundState); stateLock.writeLock().unlock(); }
@Override public synchronized UnixSocketChannel bind(SocketAddress local) throws IOException { localAddress = bindHandler.bind(getFD(), local); return this; }
UnixDatagramChannel(int fd, State initialState, boolean initialBoundState) { super(fd); stateLock.writeLock().lock(); state = initialState; bindHandler = new BindHandler(initialBoundState); stateLock.writeLock().unlock(); }
@Override public UnixDatagramChannel bind(SocketAddress local) throws IOException { localAddress = bindHandler.bind(getFD(), local); return this; }
boolean isBound() { return bindHandler.isBound(); }