aboutsummaryrefslogtreecommitdiffstats
path: root/fnet/src/vespa/fnet/packet.cpp
blob: d40bee836a9872108177013f26df46defae4bfe5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "packet.h"
#include <vespa/vespalib/util/stringfmt.h>

vespalib::string
FNET_Packet::Print(uint32_t indent)
{
    return vespalib::make_string("%*sFNET_Packet[subclass] { regular=%s, control=%s, "
           "pcode=%d, command=%d, length=%d }\n", indent, "",
           IsRegularPacket()? "true" : "false",
           IsControlPacket()? "true" : "false",
           GetPCODE(), GetCommand(), GetLength());
}