public class SharedMemorySocket extends Socket
| Modifier and Type | Class and Description |
|---|---|
static interface |
SharedMemorySocket.Advapi32 |
static interface |
SharedMemorySocket.Kernel32 |
| Modifier and Type | Field and Description |
|---|---|
static String |
EVERYONE_SYNCHRONIZE_SDDL |
| Constructor and Description |
|---|
SharedMemorySocket(String name)
Create ShareMemorySocket.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect(SocketAddress endpoint) |
void |
connect(SocketAddress endpoint,
int timeout) |
int |
getConnectNumber() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
static com.sun.jna.Pointer |
mapMemory(String mapName,
int mode,
int size)
Map memory
|
static com.sun.jna.platform.win32.WinNT.HANDLE |
openEvent(String name) |
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 |
shutdownInput() |
void |
shutdownOutput() |
bind, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setOOBInline, setPerformancePreferences, setReuseAddress, setSocketImplFactory, setTrafficClass, toStringpublic static final String EVERYONE_SYNCHRONIZE_SDDL
public SharedMemorySocket(String name) throws IOException
name - nameIOException - exceptionpublic static com.sun.jna.platform.win32.WinNT.HANDLE openEvent(String name)
public static com.sun.jna.Pointer mapMemory(String mapName, int mode, int size)
mapName - map namemode - modesize - sizepublic void connect(SocketAddress endpoint) throws IOException
connect in class SocketIOExceptionpublic int getConnectNumber()
throws IOException
IOExceptionpublic void connect(SocketAddress endpoint, int timeout) throws IOException
connect in class SocketIOExceptionpublic InputStream getInputStream()
getInputStream in class Socketpublic OutputStream getOutputStream()
getOutputStream in class Socketpublic void setTcpNoDelay(boolean b)
setTcpNoDelay in class Socketpublic void setKeepAlive(boolean b)
setKeepAlive in class Socketpublic void setReceiveBufferSize(int size)
setReceiveBufferSize in class Socketpublic void setSendBufferSize(int size)
setSendBufferSize in class Socketpublic void setSoLinger(boolean b,
int i)
setSoLinger in class Socketpublic void setSoTimeout(int t)
setSoTimeout in class Socketpublic void shutdownInput()
shutdownInput in class Socketpublic void shutdownOutput()
shutdownOutput in class SocketCopyright © 2016. All rights reserved.