35 ssize_t
fill(
const uint8_t *buffer,
size_t len);
79 std::recursive_mutex mutex;
ssize_t pour(BgpPacket **pkt)
Pour BGP packet out from sink.
void setLogger(BgpLogHandler *logger)
Set the logger to use. If NULL or not set, nothing will be logger.
~BgpSink()
Destroy the Bgp Sink:: Bgp Sink object.
void drain()
Drain the sink. (Remove all data from sink buffer)
Top level deserialization/serialization entry point for BGP messages.
size_t getBytesInSink() const
Get amount to data in sink.
ssize_t fill(const uint8_t *buffer, size_t len)
Fill the sink with data.
BgpSink(bool use_4b_asn)
Construct a new Bgp Sink:: Bgp Sink object.