Class UnixDomainSocket
java.lang.Object
java.net.Socket
org.mariadb.jdbc.internal.io.socket.UnixDomainSocket
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static intclose(int fd) static intconnect(int sockfd, UnixDomainSocket.SockAddr sockaddr, int addrlen) voidconnect(SocketAddress endpoint) voidconnect(SocketAddress endpoint, int timeout) booleanstatic intrecv(int fd, byte[] buffer, int count, int flags) static intsend(int fd, byte[] buffer, int count, int flags) voidsetKeepAlive(boolean b) voidsetReceiveBufferSize(int size) voidsetSendBufferSize(int size) voidsetSoLinger(boolean b, int i) voidsetSoTimeout(int timeout) voidsetTcpNoDelay(boolean b) voidvoidstatic intsocket(int domain, int type, int protocol) static Stringstrerror(int errno) Methods inherited from class Socket
bind, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOption, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isInputShutdown, isOutputShutdown, sendUrgentData, setOOBInline, setOption, setPerformancePreferences, setReuseAddress, setSocketImplFactory, setTrafficClass, supportedOptions, toString
-
Constructor Details
-
UnixDomainSocket
- Throws:
IOException
-
-
Method Details
-
socket
public static int socket(int domain, int type, int protocol) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
connect
public static int connect(int sockfd, UnixDomainSocket.SockAddr sockaddr, int addrlen) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
recv
public static int recv(int fd, byte[] buffer, int count, int flags) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
send
public static int send(int fd, byte[] buffer, int count, int flags) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
close
public static int close(int fd) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
strerror
-
isConnected
public boolean isConnected()- Overrides:
isConnectedin classSocket
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classSocket- Throws:
IOException
-
connect
- Overrides:
connectin classSocket- Throws:
IOException
-
connect
- Overrides:
connectin classSocket- Throws:
IOException
-
getInputStream
- Overrides:
getInputStreamin classSocket
-
getOutputStream
- Overrides:
getOutputStreamin classSocket
-
setTcpNoDelay
public void setTcpNoDelay(boolean b) - Overrides:
setTcpNoDelayin classSocket
-
setKeepAlive
public void setKeepAlive(boolean b) - Overrides:
setKeepAlivein classSocket
-
setReceiveBufferSize
public void setReceiveBufferSize(int size) - Overrides:
setReceiveBufferSizein classSocket
-
setSendBufferSize
public void setSendBufferSize(int size) - Overrides:
setSendBufferSizein classSocket
-
setSoLinger
public void setSoLinger(boolean b, int i) - Overrides:
setSoLingerin classSocket
-
setSoTimeout
public void setSoTimeout(int timeout) - Overrides:
setSoTimeoutin classSocket
-
shutdownInput
public void shutdownInput()- Overrides:
shutdownInputin classSocket
-
shutdownOutput
public void shutdownOutput()- Overrides:
shutdownOutputin classSocket
-