Class NamedPipeSocket
- java.lang.Object
-
- java.net.Socket
-
- org.mariadb.jdbc.internal.io.socket.NamedPipeSocket
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class NamedPipeSocket extends Socket
-
-
Constructor Summary
Constructors Constructor Description NamedPipeSocket(String host, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
connect(SocketAddress endpoint)
void
connect(SocketAddress endpoint, int timeout)
Name pipe connection.InputStream
getInputStream()
OutputStream
getOutputStream()
void
setKeepAlive(boolean bool)
void
setReceiveBufferSize(int size)
void
setSendBufferSize(int size)
void
setSoLinger(boolean bool, int value)
void
setSoTimeout(int timeout)
void
setTcpNoDelay(boolean bool)
void
shutdownInput()
void
shutdownOutput()
-
Methods inherited from class java.net.Socket
bind, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOption, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setOOBInline, setOption, setPerformancePreferences, setReuseAddress, setSocketImplFactory, setTrafficClass, supportedOptions, toString
-
-
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classSocket
- Throws:
IOException
-
connect
public void connect(SocketAddress endpoint) throws IOException
- Overrides:
connect
in classSocket
- Throws:
IOException
-
connect
public void connect(SocketAddress endpoint, int timeout) throws IOException
Name pipe connection.- Overrides:
connect
in classSocket
- Parameters:
endpoint
- endPointtimeout
- timeout in milliseconds- Throws:
IOException
- exception
-
getInputStream
public InputStream getInputStream()
- Overrides:
getInputStream
in classSocket
-
getOutputStream
public OutputStream getOutputStream()
- Overrides:
getOutputStream
in classSocket
-
setTcpNoDelay
public void setTcpNoDelay(boolean bool)
- Overrides:
setTcpNoDelay
in classSocket
-
setKeepAlive
public void setKeepAlive(boolean bool)
- Overrides:
setKeepAlive
in classSocket
-
setReceiveBufferSize
public void setReceiveBufferSize(int size)
- Overrides:
setReceiveBufferSize
in classSocket
-
setSendBufferSize
public void setSendBufferSize(int size)
- Overrides:
setSendBufferSize
in classSocket
-
setSoLinger
public void setSoLinger(boolean bool, int value)
- Overrides:
setSoLinger
in classSocket
-
setSoTimeout
public void setSoTimeout(int timeout)
- Overrides:
setSoTimeout
in classSocket
-
shutdownInput
public void shutdownInput()
- Overrides:
shutdownInput
in classSocket
-
shutdownOutput
public void shutdownOutput()
- Overrides:
shutdownOutput
in classSocket
-
-