Class NamedPipeSocket
java.lang.Object
java.net.Socket
org.mariadb.jdbc.client.socket.impl.NamedPipeSocket
- All Implemented Interfaces:
Closeable
,AutoCloseable
Windows named pipe socket implementation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate RandomAccessFile
private final String
private InputStream
private final String
private OutputStream
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
connect
(SocketAddress endpoint, int timeout) Name pipe connection.void
setKeepAlive
(boolean bool) void
setSoLinger
(boolean bool, int value) void
setSoTimeout
(int timeout) void
setTcpNoDelay
(boolean bool) void
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
-
Field Details
-
host
-
name
-
file
-
is
-
os
-
-
Constructor Details
-
NamedPipeSocket
Constructor- Parameters:
host
- hostname
- pipe name
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classSocket
- Throws:
IOException
-
connect
Name pipe connection.- Overrides:
connect
in classSocket
- Parameters:
endpoint
- endPointtimeout
- timeout in milliseconds- Throws:
IOException
- exception
-
getInputStream
- Overrides:
getInputStream
in classSocket
-
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
-
setSoLinger
public void setSoLinger(boolean bool, int value) - Overrides:
setSoLinger
in classSocket
-
setSoTimeout
public void setSoTimeout(int timeout) - Overrides:
setSoTimeout
in classSocket
-
shutdownOutput
public void shutdownOutput()- Overrides:
shutdownOutput
in classSocket
-