public CheckPriceResp checkPriceResp(CheckPriceMessage message) { byte[] resp = clientSocketThread.sendAndWait(message); if (resp != null) { MessageHeader header = new MessageHeader(resp); if (header.getCommandId() == Command.CMDID_CheckPriceResp) { return new CheckPriceResp(resp); } } return null; }
public byte[] sendToServer(MessageBody message) { return clientSocketThread.sendAndWait(message); }