Package io.netty.incubator.channel.uring
Class LinuxSocket
java.lang.Object
io.netty.channel.unix.FileDescriptor
io.netty.channel.unix.Socket
io.netty.incubator.channel.uring.LinuxSocket
final class LinuxSocket
extends io.netty.channel.unix.Socket
A socket which provides access Linux native methods.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final InetAddress(package private) static final InetAddressprivate static final longFields inherited from class io.netty.channel.unix.Socket
ipv6, UDS_SUN_PATH_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static InetAddressderiveInetAddress(NetworkInterface netInterface, boolean ipv6) (package private) io.netty.channel.socket.InternetProtocolFamilyfamily()(package private) InetAddressprivate static intgetInterface(int fd, boolean ipv6) private static intgetIpMulticastLoop(int fd, boolean ipv6) (package private) NetworkInterface(package private) io.netty.channel.unix.PeerCredentialsprivate static io.netty.channel.unix.PeerCredentialsgetPeerCredentials(int fd) (package private) intprivate static intgetSoBusyPoll(int fd) (package private) intprivate static intgetTcpDeferAccept(int fd) private static voidgetTcpInfo(int fd, long[] array) (package private) voidgetTcpInfo(IOUringTcpInfo info) (package private) intprivate static intgetTcpKeepCnt(int fd) (package private) intprivate static intgetTcpKeepIdle(int fd) (package private) intprivate static intgetTcpKeepIntvl(int fd) (package private) longprivate static intgetTcpNotSentLowAt(int fd) (package private) intprivate static intgetTcpUserTimeout(int fd) (package private) intprivate static intgetTimeToLive(int fd) private static InetAddressinetAddress(int value) private static intinterfaceIndex(InetAddress address) private static intinterfaceIndex(NetworkInterface networkInterface) (package private) booleanprivate static intisIpFreeBind(int fd) (package private) booleanprivate static intisIpRecvOrigDestAddr(int fd) (package private) booleanprivate static intisIpTransparent(int fd) (package private) booleanisIpv6()(package private) boolean(package private) booleanprivate static intisTcpCork(int fd) (package private) booleanprivate static intisTcpFastOpenConnect(int fd) (package private) booleanprivate static intisTcpQuickAck(int fd) private static voidjoinGroup(int fd, boolean ipv6, byte[] group, byte[] interfaceAddress, int scopeId, int interfaceIndex) (package private) voidjoinGroup(InetAddress group, NetworkInterface netInterface, InetAddress source) private static voidjoinSsmGroup(int fd, boolean ipv6, byte[] group, byte[] interfaceAddress, int scopeId, int interfaceIndex, byte[] source) private static voidleaveGroup(int fd, boolean ipv6, byte[] group, byte[] interfaceAddress, int scopeId, int interfaceIndex) (package private) voidleaveGroup(InetAddress group, NetworkInterface netInterface, InetAddress source) private static voidleaveSsmGroup(int fd, boolean ipv6, byte[] group, byte[] interfaceAddress, int scopeId, int interfaceIndex, byte[] source) booleanstatic LinuxSocketstatic LinuxSocketnewSocketDgram(boolean ipv6) static LinuxSocketstatic LinuxSocketstatic LinuxSocketnewSocketStream(boolean ipv6) private static voidsetInterface(int fd, boolean ipv6, byte[] interfaceAddress, int scopeId, int networkInterfaceIndex) (package private) voidsetInterface(InetAddress address) (package private) voidsetIpFreeBind(boolean enabled) private static voidsetIpFreeBind(int fd, int freeBind) private static voidsetIpMulticastLoop(int fd, boolean ipv6, int enabled) (package private) voidsetIpRecvOrigDestAddr(boolean enabled) private static voidsetIpRecvOrigDestAddr(int fd, int transparent) (package private) voidsetIpTransparent(boolean enabled) private static voidsetIpTransparent(int fd, int transparent) (package private) voidsetLoopbackModeDisabled(boolean loopbackModeDisabled) (package private) voidsetNetworkInterface(NetworkInterface netInterface) (package private) voidsetSoBusyPoll(int loopMicros) private static voidsetSoBusyPoll(int fd, int loopMicros) (package private) voidsetTcpCork(boolean tcpCork) private static voidsetTcpCork(int fd, int tcpCork) (package private) voidsetTcpDeferAccept(int deferAccept) private static voidsetTcpDeferAccept(int fd, int deferAccept) (package private) voidsetTcpFastOpen(int tcpFastopenBacklog) private static voidsetTcpFastOpen(int fd, int tcpFastopenBacklog) (package private) voidsetTcpFastOpenConnect(boolean tcpFastOpenConnect) private static voidsetTcpFastOpenConnect(int fd, int tcpFastOpenConnect) (package private) voidsetTcpKeepCnt(int probes) private static voidsetTcpKeepCnt(int fd, int probes) (package private) voidsetTcpKeepIdle(int seconds) private static voidsetTcpKeepIdle(int fd, int seconds) (package private) voidsetTcpKeepIntvl(int seconds) private static voidsetTcpKeepIntvl(int fd, int seconds) private static voidsetTcpMd5Sig(int fd, boolean ipv6, byte[] address, int scopeId, byte[] key) (package private) voidsetTcpMd5Sig(InetAddress address, byte[] key) private static voidsetTcpNotSentLowAt(int fd, int tcpNotSentLowAt) (package private) voidsetTcpNotSentLowAt(long tcpNotSentLowAt) (package private) voidsetTcpQuickAck(boolean quickAck) private static voidsetTcpQuickAck(int fd, int quickAck) (package private) voidsetTcpUserTimeout(int milliseconds) private static voidsetTcpUserTimeout(int fd, int milliseconds) (package private) voidsetTimeToLive(int ttl) private static voidsetTimeToLive(int fd, int ttl) private static InetAddressunsafeInetAddrByName(String inetName) Methods inherited from class io.netty.channel.unix.Socket
accept, bind, connect, disconnect, finishConnect, getIntOpt, getRawOpt, getReceiveBufferSize, getSendBufferSize, getSoError, getSoLinger, getTrafficClass, initialize, isBroadcast, isInputShutdown, isIPv6Preferred, isKeepAlive, isOutputShutdown, isReuseAddress, isReusePort, isShutdown, isTcpNoDelay, listen, localAddress, localDomainSocketAddress, newSocketDgram0, newSocketDgram0, newSocketDgram0, newSocketDomain0, newSocketDomainDgram, newSocketDomainDgram0, newSocketStream0, newSocketStream0, newSocketStream0, recv, recvAddress, recvFd, recvFrom, recvFromAddress, recvFromAddressDomainSocket, recvFromDomainSocket, remoteAddress, remoteDomainSocketAddress, send, sendAddress, sendFd, sendTo, sendTo, sendToAddress, sendToAddress, sendToAddressDomainSocket, sendToAddresses, sendToAddresses, sendToAddressesDomainSocket, sendToDomainSocket, setBroadcast, setIntOpt, setKeepAlive, setRawOpt, setReceiveBufferSize, setReuseAddress, setReusePort, setSendBufferSize, setSoLinger, setTcpNoDelay, setTrafficClass, shouldUseIpv6, shutdown, shutdown, toString, useIpv6Methods inherited from class io.netty.channel.unix.FileDescriptor
close, equals, from, from, hashCode, intValue, isOpen, pipe, read, readAddress, write, writeAddress, writev, writevAddresses
-
Field Details
-
INET6_ANY
-
INET_ANY
-
MAX_UINT32_T
private static final long MAX_UINT32_T- See Also:
-
-
Constructor Details
-
LinuxSocket
LinuxSocket(int fd)
-
-
Method Details
-
family
io.netty.channel.socket.InternetProtocolFamily family() -
markClosed
public boolean markClosed()- Overrides:
markClosedin classio.netty.channel.unix.FileDescriptor
-
setTimeToLive
- Throws:
IOException
-
setInterface
- Throws:
IOException
-
setNetworkInterface
- Throws:
IOException
-
getInterface
- Throws:
IOException
-
getNetworkInterface
- Throws:
IOException
-
inetAddress
-
joinGroup
void joinGroup(InetAddress group, NetworkInterface netInterface, InetAddress source) throws IOException - Throws:
IOException
-
leaveGroup
void leaveGroup(InetAddress group, NetworkInterface netInterface, InetAddress source) throws IOException - Throws:
IOException
-
interfaceIndex
-
interfaceIndex
- Throws:
IOException
-
setTcpDeferAccept
- Throws:
IOException
-
setTcpQuickAck
- Throws:
IOException
-
setTcpCork
- Throws:
IOException
-
setSoBusyPoll
- Throws:
IOException
-
setTcpNotSentLowAt
- Throws:
IOException
-
setTcpFastOpen
- Throws:
IOException
-
setTcpFastOpenConnect
- Throws:
IOException
-
isTcpFastOpenConnect
- Throws:
IOException
-
setTcpKeepIdle
- Throws:
IOException
-
setTcpKeepIntvl
- Throws:
IOException
-
setTcpKeepCnt
- Throws:
IOException
-
setTcpUserTimeout
- Throws:
IOException
-
setIpFreeBind
- Throws:
IOException
-
setIpTransparent
- Throws:
IOException
-
setIpRecvOrigDestAddr
- Throws:
IOException
-
getTimeToLive
- Throws:
IOException
-
getTcpInfo
- Throws:
IOException
-
setTcpMd5Sig
- Throws:
IOException
-
isTcpCork
- Throws:
IOException
-
getSoBusyPoll
- Throws:
IOException
-
getTcpDeferAccept
- Throws:
IOException
-
isTcpQuickAck
- Throws:
IOException
-
getTcpNotSentLowAt
- Throws:
IOException
-
getTcpKeepIdle
- Throws:
IOException
-
getTcpKeepIntvl
- Throws:
IOException
-
getTcpKeepCnt
- Throws:
IOException
-
getTcpUserTimeout
- Throws:
IOException
-
isIpFreeBind
- Throws:
IOException
-
isIpTransparent
- Throws:
IOException
-
isIpRecvOrigDestAddr
- Throws:
IOException
-
getPeerCredentials
- Throws:
IOException
-
isLoopbackModeDisabled
- Throws:
IOException
-
setLoopbackModeDisabled
- Throws:
IOException
-
deriveInetAddress
-
isIpv6
boolean isIpv6() -
newSocketStream
-
newSocketStream
-
newSocketDgram
-
newSocketDgram
-
newSocketDomain
-
unsafeInetAddrByName
-
joinGroup
private static void joinGroup(int fd, boolean ipv6, byte[] group, byte[] interfaceAddress, int scopeId, int interfaceIndex) throws IOException - Throws:
IOException
-
joinSsmGroup
private static void joinSsmGroup(int fd, boolean ipv6, byte[] group, byte[] interfaceAddress, int scopeId, int interfaceIndex, byte[] source) throws IOException - Throws:
IOException
-
leaveGroup
private static void leaveGroup(int fd, boolean ipv6, byte[] group, byte[] interfaceAddress, int scopeId, int interfaceIndex) throws IOException - Throws:
IOException
-
leaveSsmGroup
private static void leaveSsmGroup(int fd, boolean ipv6, byte[] group, byte[] interfaceAddress, int scopeId, int interfaceIndex, byte[] source) throws IOException - Throws:
IOException
-
getTcpDeferAccept
- Throws:
IOException
-
isTcpQuickAck
- Throws:
IOException
-
isTcpCork
- Throws:
IOException
-
getSoBusyPoll
- Throws:
IOException
-
getTcpNotSentLowAt
- Throws:
IOException
-
getTcpKeepIdle
- Throws:
IOException
-
getTcpKeepIntvl
- Throws:
IOException
-
getTcpKeepCnt
- Throws:
IOException
-
getTcpUserTimeout
- Throws:
IOException
-
getTimeToLive
- Throws:
IOException
-
isIpFreeBind
- Throws:
IOException
-
isIpTransparent
- Throws:
IOException
-
isIpRecvOrigDestAddr
- Throws:
IOException
-
getTcpInfo
- Throws:
IOException
-
getPeerCredentials
- Throws:
IOException
-
isTcpFastOpenConnect
- Throws:
IOException
-
setTcpDeferAccept
- Throws:
IOException
-
setTcpQuickAck
- Throws:
IOException
-
setTcpCork
- Throws:
IOException
-
setSoBusyPoll
- Throws:
IOException
-
setTcpNotSentLowAt
- Throws:
IOException
-
setTcpFastOpen
- Throws:
IOException
-
setTcpFastOpenConnect
- Throws:
IOException
-
setTcpKeepIdle
- Throws:
IOException
-
setTcpKeepIntvl
- Throws:
IOException
-
setTcpKeepCnt
- Throws:
IOException
-
setTcpUserTimeout
- Throws:
IOException
-
setIpFreeBind
- Throws:
IOException
-
setIpTransparent
- Throws:
IOException
-
setIpRecvOrigDestAddr
- Throws:
IOException
-
setTcpMd5Sig
private static void setTcpMd5Sig(int fd, boolean ipv6, byte[] address, int scopeId, byte[] key) throws IOException - Throws:
IOException
-
setInterface
private static void setInterface(int fd, boolean ipv6, byte[] interfaceAddress, int scopeId, int networkInterfaceIndex) throws IOException - Throws:
IOException
-
getInterface
private static int getInterface(int fd, boolean ipv6) -
getIpMulticastLoop
- Throws:
IOException
-
setIpMulticastLoop
- Throws:
IOException
-
setTimeToLive
- Throws:
IOException
-