@Override protected Channel newChildChannel(int fd, byte[] addr, int offset, int len) throws Exception { return new KQueueDomainSocketChannel(this, new BsdSocket(fd)); }
@Override void readReady(KQueueRecvByteAllocatorHandle allocHandle) { switch (config().getReadMode()) { case BYTES: super.readReady(allocHandle); break; case FILE_DESCRIPTORS: readReadyFd(); break; default: throw new Error(); } }
@Override protected Channel newChildChannel(int fd, byte[] addr, int offset, int len) throws Exception { return new KQueueDomainSocketChannel(this, new BsdSocket(fd)); }
@Override void readReady(KQueueRecvByteAllocatorHandle allocHandle) { switch (config().getReadMode()) { case BYTES: super.readReady(allocHandle); break; case FILE_DESCRIPTORS: readReadyFd(); break; default: throw new Error(); } }
return (T) new EpollDomainSocketChannel(); case NATIVE_KQUEUE_DOMAIN: return (T) new KQueueDomainSocketChannel(); default: throw new IllegalStateException("Invalid socket type: " + socketType);
@Override void readReady(KQueueRecvByteAllocatorHandle allocHandle) { switch (config().getReadMode()) { case BYTES: super.readReady(allocHandle); break; case FILE_DESCRIPTORS: readReadyFd(); break; default: throw new Error(); } }
return (T) new EpollDomainSocketChannel(); case NATIVE_KQUEUE_DOMAIN: return (T) new KQueueDomainSocketChannel(); default: throw new IllegalStateException("Invalid socket type: " + socketType);
@Override void readReady(KQueueRecvByteAllocatorHandle allocHandle) { switch (config().getReadMode()) { case BYTES: super.readReady(allocHandle); break; case FILE_DESCRIPTORS: readReadyFd(); break; default: throw new Error(); } }
@Override protected Channel newChildChannel(int fd, byte[] addr, int offset, int len) throws Exception { return new KQueueDomainSocketChannel(this, new BsdSocket(fd)); }
@Override void readReady(KQueueRecvByteAllocatorHandle allocHandle) { switch (config().getReadMode()) { case BYTES: super.readReady(allocHandle); break; case FILE_DESCRIPTORS: readReadyFd(); break; default: throw new Error(); } }