redo hexDump
ludicrously inefficient (cf. toHex() ), and inflexible.
This commit is contained in:
@@ -185,12 +185,6 @@ void AbstractCodec::processReadNormal() {
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
hexDump("Header", (const int8*)_socketBuffer.getArray(),
|
||||
_socketBuffer.getPosition(), PVA_MESSAGE_HEADER_SIZE);
|
||||
|
||||
*/
|
||||
|
||||
// read header fields
|
||||
processHeader();
|
||||
bool isControl = ((_flags & 0x01) == 0x01);
|
||||
@@ -797,14 +791,6 @@ void AbstractCodec::send(ByteBuffer *buffer)
|
||||
//int p = buffer.position();
|
||||
int bytesSent = write(buffer);
|
||||
|
||||
/*
|
||||
if (IS_LOGGABLE(logLevelTrace)) {
|
||||
hexDump(std::string("AbstractCodec::send WRITE"),
|
||||
(const int8 *)buffer->getArray(),
|
||||
buffer->getPosition(), buffer->getRemaining());
|
||||
}
|
||||
*/
|
||||
|
||||
if (bytesSent < 0)
|
||||
{
|
||||
// connection lost
|
||||
@@ -1302,13 +1288,6 @@ int BlockingTCPTransportCodec::read(epics::pvData::ByteBuffer* dst) {
|
||||
|
||||
// NOTE: do not log here, you might override SOCKERRNO relevant to recv() operation above
|
||||
|
||||
/*
|
||||
if (IS_LOGGABLE(logLevelTrace)) {
|
||||
hexDump(std::string("READ"),
|
||||
(const int8 *)(dst->getArray()+pos), bytesRead);
|
||||
}
|
||||
*/
|
||||
|
||||
if(unlikely(bytesRead<=0)) {
|
||||
|
||||
if (bytesRead<0)
|
||||
|
||||
Reference in New Issue
Block a user