Class NamedPipeSocket
- java.lang.Object
-
- java.net.Socket
-
- org.mariadb.jdbc.client.socket.impl.NamedPipeSocket
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class NamedPipeSocket extends Socket
Windows named pipe socket implementation
-
-
Constructor Summary
Constructors Constructor Description NamedPipeSocket(String host, String name)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidconnect(SocketAddress endpoint, int timeout)Name pipe connection.InputStreamgetInputStream()OutputStreamgetOutputStream()voidsetKeepAlive(boolean bool)voidsetSoLinger(boolean bool, int value)voidsetSoTimeout(int timeout)voidsetTcpNoDelay(boolean bool)voidshutdownOutput()-
Methods inherited from class java.net.Socket
bind, connect, 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, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setTrafficClass, shutdownInput, supportedOptions, toString
-
-
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classSocket- Throws:
IOException
-
connect
public void connect(SocketAddress endpoint, int timeout) throws IOException
Name pipe connection.- Overrides:
connectin classSocket- Parameters:
endpoint- endPointtimeout- timeout in milliseconds- Throws:
IOException- exception
-
getInputStream
public InputStream getInputStream()
- Overrides:
getInputStreamin classSocket
-
getOutputStream
public OutputStream getOutputStream()
- Overrides:
getOutputStreamin classSocket
-
setTcpNoDelay
public void setTcpNoDelay(boolean bool)
- Overrides:
setTcpNoDelayin classSocket
-
setKeepAlive
public void setKeepAlive(boolean bool)
- Overrides:
setKeepAlivein classSocket
-
setSoLinger
public void setSoLinger(boolean bool, int value)- Overrides:
setSoLingerin classSocket
-
setSoTimeout
public void setSoTimeout(int timeout)
- Overrides:
setSoTimeoutin classSocket
-
shutdownOutput
public void shutdownOutput()
- Overrides:
shutdownOutputin classSocket
-
-