public class UnixDomainSocket extends Socket
| 限定符和类型 | 类和说明 |
|---|---|
static class |
UnixDomainSocket.SockAddr |
| 构造器和说明 |
|---|
UnixDomainSocket(String path) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
static int |
close(int fd) |
static int |
connect(int sockfd,
UnixDomainSocket.SockAddr sockaddr,
int addrlen) |
void |
connect(SocketAddress endpoint) |
void |
connect(SocketAddress endpoint,
int timeout) |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
boolean |
isConnected() |
static int |
recv(int fd,
byte[] buffer,
int count,
int flags) |
static int |
send(int fd,
byte[] buffer,
int count,
int flags) |
void |
setKeepAlive(boolean b) |
void |
setReceiveBufferSize(int size) |
void |
setSendBufferSize(int size) |
void |
setSoLinger(boolean b,
int i) |
void |
setSoTimeout(int timeout) |
void |
setTcpNoDelay(boolean b) |
void |
shutdownInput() |
void |
shutdownOutput() |
static int |
socket(int domain,
int type,
int protocol) |
static String |
strerror(int errno) |
bind, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isInputShutdown, isOutputShutdown, sendUrgentData, setOOBInline, setPerformancePreferences, setReuseAddress, setSocketImplFactory, setTrafficClass, toStringpublic UnixDomainSocket(String path) throws IOException
IOExceptionpublic static int socket(int domain,
int type,
int protocol)
throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorExceptionpublic static int connect(int sockfd,
UnixDomainSocket.SockAddr sockaddr,
int addrlen)
throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorExceptionpublic static int recv(int fd,
byte[] buffer,
int count,
int flags)
throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorExceptionpublic static int send(int fd,
byte[] buffer,
int count,
int flags)
throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorExceptionpublic static int close(int fd)
throws com.sun.jna.LastErrorException
com.sun.jna.LastErrorExceptionpublic static String strerror(int errno)
public boolean isConnected()
isConnected 在类中 Socketpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 SocketIOExceptionpublic void connect(SocketAddress endpoint) throws IOException
connect 在类中 SocketIOExceptionpublic void connect(SocketAddress endpoint, int timeout) throws IOException
connect 在类中 SocketIOExceptionpublic InputStream getInputStream()
getInputStream 在类中 Socketpublic OutputStream getOutputStream()
getOutputStream 在类中 Socketpublic void setTcpNoDelay(boolean b)
setTcpNoDelay 在类中 Socketpublic void setKeepAlive(boolean b)
setKeepAlive 在类中 Socketpublic void setReceiveBufferSize(int size)
setReceiveBufferSize 在类中 Socketpublic void setSendBufferSize(int size)
setSendBufferSize 在类中 Socketpublic void setSoLinger(boolean b,
int i)
setSoLinger 在类中 Socketpublic void setSoTimeout(int timeout)
setSoTimeout 在类中 Socketpublic void shutdownInput()
shutdownInput 在类中 Socketpublic void shutdownOutput()
shutdownOutput 在类中 SocketCopyright © 2024 oceanbase.com. All rights reserved.