libbgp  0.6
A C++ BGP Library.
fd-out-handler.cc
Go to the documentation of this file.
1 
11 #include "fd-out-handler.h"
12 #include <unistd.h>
13 
14 namespace libbgp {
15 
22  this->fd = fd;
23 }
24 
25 bool FdOutHandler::handleOut(const uint8_t *buffer, size_t length) {
26  return write(fd, buffer, length) == (ssize_t) length;
27 }
28 
29 }
bool handleOut(const uint8_t *buffer, size_t length)
The output implementation.
FdOutHandler(int fd)
Construct a new Fd Out Handler:: Fd Out Handler object.
File descriptor out handler.
Definition: bgp-afi.h:14