void setSndLowAt(int lowAt) throws IOException { setSndLowAt(intValue(), lowAt); }
void setTcpNoPush(boolean tcpNoPush) throws IOException { setTcpNoPush(intValue(), tcpNoPush ? 1 : 0); }
int getSndLowAt() throws IOException { return getSndLowAt(intValue()); }
boolean isTcpNoPush() throws IOException { return getTcpNoPush(intValue()) != 0; }
PeerCredentials getPeerCredentials() throws IOException { return getPeerCredentials(intValue()); }
void setSndLowAt(int lowAt) throws IOException { setSndLowAt(intValue(), lowAt); }
boolean isTcpNoPush() throws IOException { return getTcpNoPush(intValue()) != 0; }
int getSndLowAt() throws IOException { return getSndLowAt(intValue()); }
void setTcpNoPush(boolean tcpNoPush) throws IOException { setTcpNoPush(intValue(), tcpNoPush ? 1 : 0); }
PeerCredentials getPeerCredentials() throws IOException { return getPeerCredentials(intValue()); }
AcceptFilter getAcceptFilter() throws IOException { String[] result = getAcceptFilter(intValue()); return result == null ? PLATFORM_UNSUPPORTED : new AcceptFilter(result[0], result[1]); }
AcceptFilter getAcceptFilter() throws IOException { String[] result = getAcceptFilter(intValue()); return result == null ? PLATFORM_UNSUPPORTED : new AcceptFilter(result[0], result[1]); }
void evSet(AbstractKQueueChannel ch, short filter, short flags, int fflags) { reallocIfNeeded(); evSet(getKEventOffset(size++) + memoryAddress, ch.socket.intValue(), filter, flags, fflags); }
long sendFile(DefaultFileRegion src, long baseOffset, long offset, long length) throws IOException { // Open the file-region as it may be created via the lazy constructor. This is needed as we directly access // the FileChannel field via JNI. src.open(); long res = sendFile(intValue(), src, baseOffset, offset, length); if (res >= 0) { return res; } return ioResult("sendfile", (int) res, SENDFILE_CONNECTION_RESET_EXCEPTION, SENDFILE_CLOSED_CHANNEL_EXCEPTION); }
void setAcceptFilter(AcceptFilter acceptFilter) throws IOException { setAcceptFilter(intValue(), acceptFilter.filterName(), acceptFilter.filterArgs()); }
long sendFile(DefaultFileRegion src, long baseOffset, long offset, long length) throws IOException { // Open the file-region as it may be created via the lazy constructor. This is needed as we directly access // the FileChannel field via JNI. src.open(); long res = sendFile(intValue(), src, baseOffset, offset, length); if (res >= 0) { return res; } return ioResult("sendfile", (int) res, SENDFILE_CONNECTION_RESET_EXCEPTION, SENDFILE_CLOSED_CHANNEL_EXCEPTION); }
void evSet(AbstractKQueueChannel ch, short filter, short flags, int fflags) { checkSize(); evSet(getKEventOffset(size++), ch, ch.socket.intValue(), filter, flags, fflags); }
void setAcceptFilter(AcceptFilter acceptFilter) throws IOException { setAcceptFilter(intValue(), acceptFilter.filterName(), acceptFilter.filterArgs()); }
long sendFile(DefaultFileRegion src, long baseOffset, long offset, long length) throws IOException { // Open the file-region as it may be created via the lazy constructor. This is needed as we directly access // the FileChannel field via JNI. src.open(); long res = sendFile(intValue(), src, baseOffset, offset, length); if (res >= 0) { return res; } return ioResult("sendfile", (int) res, SENDFILE_CONNECTION_RESET_EXCEPTION, SENDFILE_CLOSED_CHANNEL_EXCEPTION); }
long sendFile(DefaultFileRegion src, long baseOffset, long offset, long length) throws IOException { // Open the file-region as it may be created via the lazy constructor. This is needed as we directly access // the FileChannel field via JNI. src.open(); long res = sendFile(intValue(), src, baseOffset, offset, length); if (res >= 0) { return res; } return ioResult("sendfile", (int) res, SENDFILE_CONNECTION_RESET_EXCEPTION, SENDFILE_CLOSED_CHANNEL_EXCEPTION); }