ns3-bgp  0.2
BGP module for ns-3.
bgp-log.h
Go to the documentation of this file.
1 
11 #ifndef BGP_LOG_H
12 #define BGP_LOG_H
13 #include <libbgp/bgp-log-handler.h>
14 #include "ns3/simple-ref-count.h"
15 
16 namespace ns3 {
17 
22 class BgpLog : public libbgp::BgpLogHandler, public SimpleRefCount<BgpLog> {
23 public:
24  BgpLog(const char *owner);
25  ~BgpLog();
26 
27  void SetOwner(const char *owner);
28 
29 protected:
30  void logImpl(const char* str);
31  char *owner;
32 };
33 
34 }
35 #endif // BGP_LOG_H
void SetOwner(const char *owner)
Set the owner (prefix) of the log message.
Definition: bgp-log.cc:49
The libbgp log forwarder class.
Definition: bgp-log.h:22
BgpLog(const char *owner)
Construct a new BgpLog object.
Definition: bgp-log.cc:24
Definition: bgp-log.cc:15
void logImpl(const char *str)
Log implementation. See libbgp document.
Definition: bgp-log.cc:37