Class NamedPipeSocket
- java.lang.Object
-
- java.net.Socket
-
- org.mariadb.jdbc.internal.io.socket.NamedPipeSocket
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class NamedPipeSocket extends java.net.Socket
-
-
Constructor Summary
Constructors Constructor Description NamedPipeSocket(java.lang.String host, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidconnect(java.net.SocketAddress endpoint)voidconnect(java.net.SocketAddress endpoint, int timeout)Name pipe connection.java.io.InputStreamgetInputStream()java.io.OutputStreamgetOutputStream()voidsetKeepAlive(boolean bool)voidsetReceiveBufferSize(int size)voidsetSendBufferSize(int size)voidsetSoLinger(boolean bool, int value)voidsetSoTimeout(int timeout)voidsetTcpNoDelay(boolean bool)voidshutdownInput()voidshutdownOutput()-
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 java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.net.Socket- Throws:
java.io.IOException
-
connect
public void connect(java.net.SocketAddress endpoint) throws java.io.IOException- Overrides:
connectin classjava.net.Socket- Throws:
java.io.IOException
-
connect
public void connect(java.net.SocketAddress endpoint, int timeout) throws java.io.IOExceptionName pipe connection.- Overrides:
connectin classjava.net.Socket- Parameters:
endpoint- endPointtimeout- timeout in milliseconds- Throws:
java.io.IOException- exception
-
getInputStream
public java.io.InputStream getInputStream()
- Overrides:
getInputStreamin classjava.net.Socket
-
getOutputStream
public java.io.OutputStream getOutputStream()
- Overrides:
getOutputStreamin classjava.net.Socket
-
setTcpNoDelay
public void setTcpNoDelay(boolean bool)
- Overrides:
setTcpNoDelayin classjava.net.Socket
-
setKeepAlive
public void setKeepAlive(boolean bool)
- Overrides:
setKeepAlivein classjava.net.Socket
-
setReceiveBufferSize
public void setReceiveBufferSize(int size)
- Overrides:
setReceiveBufferSizein classjava.net.Socket
-
setSendBufferSize
public void setSendBufferSize(int size)
- Overrides:
setSendBufferSizein classjava.net.Socket
-
setSoLinger
public void setSoLinger(boolean bool, int value)- Overrides:
setSoLingerin classjava.net.Socket
-
setSoTimeout
public void setSoTimeout(int timeout)
- Overrides:
setSoTimeoutin classjava.net.Socket
-
shutdownInput
public void shutdownInput()
- Overrides:
shutdownInputin classjava.net.Socket
-
shutdownOutput
public void shutdownOutput()
- Overrides:
shutdownOutputin classjava.net.Socket
-
-