@UnstableApi public final class LinuxSocket extends Socket
ipv6, UDS_SUN_PATH_SIZE
限定符和类型 | 方法和说明 |
---|---|
void |
bindVSock(VSockAddress address) |
boolean |
connectVSock(VSockAddress address) |
VSockAddress |
localVSockAddress() |
static LinuxSocket |
newSocket(int fd) |
static LinuxSocket |
newSocketDgram() |
static LinuxSocket |
newSocketDgram(boolean ipv6) |
static LinuxSocket |
newSocketDgram(InternetProtocolFamily family) |
static LinuxSocket |
newSocketDomain() |
static LinuxSocket |
newSocketDomainDgram() |
static LinuxSocket |
newSocketStream() |
static LinuxSocket |
newSocketStream(boolean ipv6) |
static LinuxSocket |
newSocketStream(InternetProtocolFamily protocol) |
static LinuxSocket |
newVSockStream() |
VSockAddress |
remoteVSockAddress() |
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, 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, useIpv6
close, equals, from, from, hashCode, intValue, isOpen, markClosed, pipe, read, readAddress, write, writeAddress, writev, writevAddresses
public void bindVSock(VSockAddress address) throws java.io.IOException
java.io.IOException
public boolean connectVSock(VSockAddress address) throws java.io.IOException
java.io.IOException
public VSockAddress remoteVSockAddress()
public VSockAddress localVSockAddress()
public static LinuxSocket newSocket(int fd)
public static LinuxSocket newVSockStream()
public static LinuxSocket newSocketStream(boolean ipv6)
public static LinuxSocket newSocketStream(InternetProtocolFamily protocol)
public static LinuxSocket newSocketStream()
public static LinuxSocket newSocketDgram(boolean ipv6)
public static LinuxSocket newSocketDgram(InternetProtocolFamily family)
public static LinuxSocket newSocketDgram()
public static LinuxSocket newSocketDomain()
public static LinuxSocket newSocketDomainDgram()