blockingClientTCPTransport.cpp:

- changed magic numbers to enums

blockingTCPTransport.cpp:
- debug helpers only

responseHandlers.*:
- added two new handlers, NOOP and Echo
This commit is contained in:
miha_vitorovic
2011-01-07 08:44:43 +01:00
parent 25d6336efa
commit 59b45653d1
4 changed files with 94 additions and 4 deletions
@@ -188,7 +188,7 @@ namespace epics {
* send verification response message
*/
control->startMessage(1, 2*sizeof(int32)+sizeof(int16));
control->startMessage(CMD_CONNECTION_VALIDATION, 2*sizeof(int32)+sizeof(int16));
// receive buffer size
buffer->putInt(getReceiveBufferSize());
@@ -205,7 +205,7 @@ namespace epics {
_verifyOrEcho = false;
}
else {
control->startMessage(2, 0);
control->startMessage(CMD_ECHO, 0);
// send immediately
control->flush(true);
}