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 interfacestatic interface(package private) class(package private) class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate intprivate com.sun.jna.platform.win32.WinNT.HANDLEprivate com.sun.jna.platform.win32.WinNT.HANDLEprivate com.sun.jna.platform.win32.WinNT.HANDLEprivate static final Stringprivate InputStreamprivate Stringprivate OutputStreamprivate intprivate com.sun.jna.platform.win32.WinNT.HANDLEprivate com.sun.jna.platform.win32.WinNT.HANDLEprivate intprivate com.sun.jna.Pointer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidconnect(SocketAddress endpoint) voidconnect(SocketAddress endpoint, int timeout) private intprivate com.sun.jna.platform.win32.WinNT.HANDLEprivate static com.sun.jna.PointerMap memoryprivate static com.sun.jna.platform.win32.WinNT.HANDLEvoidsetKeepAlive(boolean b) voidsetReceiveBufferSize(int size) voidsetSendBufferSize(int size) voidsetSoLinger(boolean b, int i) voidsetSoTimeout(int t) voidsetTcpNoDelay(boolean b) voidvoidMethods 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:
connectin classSocket- Throws:
IOException
-
lockMutex
- Throws:
IOException
-
getConnectNumber
- Throws:
IOException
-
connect
- Overrides:
connectin classSocket- Throws:
IOException
-
getInputStream
- Overrides:
getInputStreamin classSocket
-
getOutputStream
- Overrides:
getOutputStreamin classSocket
-
setTcpNoDelay
public void setTcpNoDelay(boolean b) - Overrides:
setTcpNoDelayin classSocket
-
setKeepAlive
public void setKeepAlive(boolean b) - Overrides:
setKeepAlivein classSocket
-
setReceiveBufferSize
public void setReceiveBufferSize(int size) - Overrides:
setReceiveBufferSizein classSocket
-
setSendBufferSize
public void setSendBufferSize(int size) - Overrides:
setSendBufferSizein classSocket
-
setSoLinger
public void setSoLinger(boolean b, int i) - Overrides:
setSoLingerin classSocket
-
setSoTimeout
public void setSoTimeout(int t) - Overrides:
setSoTimeoutin classSocket
-
shutdownInput
public void shutdownInput()- Overrides:
shutdownInputin classSocket
-
shutdownOutput
public void shutdownOutput()- Overrides:
shutdownOutputin classSocket
-
close
public void close()
-