public class SocketCmd_InterProcessComm
extends java.lang.Object
implements java.io.Closeable
InterProcessComm interface usual with socket communication
to transmit cmd with arguments and wait for a receiving cmd
It is an opposite to the emC/Socmd/socketcmd.cpp to communicate| Modifier and Type | Field and Description |
|---|---|
(package private) Address_InterProcessComm |
dstAddress |
(package private) InterProcessComm_SocketImpl |
ipc |
(package private) Address_InterProcessComm |
lastSender |
static int |
mError |
static int |
mOpened |
static int |
mReceiving |
(package private) int |
nState |
(package private) Address_InterProcessComm |
ownAddress |
(package private) java.lang.String |
state |
| Constructor and Description |
|---|
SocketCmd_InterProcessComm(java.lang.String sAddr,
java.lang.String sAddrDst) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getNumState()
Get the state as number
bit 0x1 opened
bit 0x2 receiving (waiting)
bit 0x8 error
|
java.lang.String |
getState() |
boolean |
hasError() |
java.lang.String |
toString() |
void |
tx(java.lang.String cmd)
Transmit this cmd.
|
java.lang.String |
waitRx()
Waits and returns the cmd
|
java.lang.String state
int nState
public static final int mOpened
public static final int mReceiving
public static final int mError
InterProcessComm_SocketImpl ipc
Address_InterProcessComm ownAddress
Address_InterProcessComm dstAddress
Address_InterProcessComm lastSender
public SocketCmd_InterProcessComm(java.lang.String sAddr,
java.lang.String sAddrDst)
public void tx(java.lang.String cmd)
cmd - public java.lang.String waitRx()
public int getNumState()
public boolean hasError()
public java.lang.String getState()
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic java.lang.String toString()
toString in class java.lang.Object