public class ComProtocol extends SMYLDObject implements ProtocolConsts
NEW_LINE, OS_NEW_LINEPROCESS_SERVER_PORT, REQ_INIT, REQ_PROCESS_INFO, REQ_REGISTER, REQ_RUN_PROCESS, REQ_USER_VERIFY, RESP_INIT, RESP_PROCESS_INFO, RESP_REGSITER, RESP_RUN_PROCESS, RESP_USER_VERIFY| Constructor and Description |
|---|
ComProtocol() |
ComProtocol(ProtocolHeader header,
ProtocolBody body)
Constructs a new
ComProtocol using the given protocol
header and the protocol body |
| Modifier and Type | Method and Description |
|---|---|
ProtocolBody |
getBody() |
ProtocolHeader |
getHeader() |
void |
setBody(ProtocolBody newBody)
Sets the given
ProtocolBody as the new body of this
ComProtocol |
void |
setHeader(ProtocolHeader newHeader)
Sets the given
ProtocolHeader as the new header of this
ComProtocol |
debug, getLenName, insertInstanceValue, printInstanceValues, toStringpublic ComProtocol()
public ComProtocol(ProtocolHeader header, ProtocolBody body)
ComProtocol using the given protocol
header and the protocol bodyheader - the header of this protocolbody - the body of this protocolpublic ProtocolBody getBody()
public ProtocolHeader getHeader()
public void setHeader(ProtocolHeader newHeader)
ProtocolHeader as the new header of this
ComProtocolnewHeader - the new header of this protocolpublic void setBody(ProtocolBody newBody)
ProtocolBody as the new body of this
ComProtocolnewBody - the new body of this protocolCopyright © 2019 com.github.mfjamil. All rights reserved.