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