Class SharedMemorySocket
java.lang.Object
java.net.Socket
org.mariadb.jdbc.internal.io.socket.SharedMemorySocket
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
(package private) class
(package private) class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private int
private com.sun.jna.platform.win32.WinNT.HANDLE
private com.sun.jna.platform.win32.WinNT.HANDLE
private com.sun.jna.platform.win32.WinNT.HANDLE
private static final String
private InputStream
private String
private OutputStream
private int
private com.sun.jna.platform.win32.WinNT.HANDLE
private com.sun.jna.platform.win32.WinNT.HANDLE
private int
private com.sun.jna.Pointer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
connect
(SocketAddress endpoint) void
connect
(SocketAddress endpoint, int timeout) private int
private com.sun.jna.platform.win32.WinNT.HANDLE
private static com.sun.jna.Pointer
Map memoryprivate static com.sun.jna.platform.win32.WinNT.HANDLE
void
setKeepAlive
(boolean b) void
setReceiveBufferSize
(int size) void
setSendBufferSize
(int size) void
setSoLinger
(boolean b, int i) void
setSoTimeout
(int t) void
setTcpNoDelay
(boolean b) void
void
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
-
Field Details
-
EVERYONE_SYNCHRONIZE_SDDL
- See Also:
-
WIN32API_OPTIONS
-
BUFFERLEN
private static final int BUFFERLEN- See Also:
-
is
-
os
-
memoryName
-
serverRead
private com.sun.jna.platform.win32.WinNT.HANDLE serverRead -
serverWrote
private com.sun.jna.platform.win32.WinNT.HANDLE serverWrote -
clientRead
private com.sun.jna.platform.win32.WinNT.HANDLE clientRead -
clientWrote
private com.sun.jna.platform.win32.WinNT.HANDLE clientWrote -
connectionClosed
private com.sun.jna.platform.win32.WinNT.HANDLE connectionClosed -
view
private com.sun.jna.Pointer view -
bytesLeft
private int bytesLeft -
position
private int position -
timeout
private int timeout
-
-
Constructor Details
-
SharedMemorySocket
Create ShareMemorySocket.- Parameters:
name
- name- Throws:
IOException
- exception
-
-
Method Details
-
openEvent
-
mapMemory
Map memory- Parameters:
mapName
- map namemode
- modesize
- size- Returns:
- Pointer
-
connect
- Overrides:
connect
in classSocket
- Throws:
IOException
-
lockMutex
- Throws:
IOException
-
getConnectNumber
- Throws:
IOException
-
connect
- Overrides:
connect
in classSocket
- Throws:
IOException
-
getInputStream
- Overrides:
getInputStream
in classSocket
-
getOutputStream
- Overrides:
getOutputStream
in classSocket
-
setTcpNoDelay
public void setTcpNoDelay(boolean b) - Overrides:
setTcpNoDelay
in classSocket
-
setKeepAlive
public void setKeepAlive(boolean b) - 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 b, int i) - Overrides:
setSoLinger
in classSocket
-
setSoTimeout
public void setSoTimeout(int t) - Overrides:
setSoTimeout
in classSocket
-
shutdownInput
public void shutdownInput()- Overrides:
shutdownInput
in classSocket
-
shutdownOutput
public void shutdownOutput()- Overrides:
shutdownOutput
in classSocket
-
close
public void close()
-