libbgp
0.6
A C++ BGP Library.
src
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
21
FdOutHandler::FdOutHandler
(
int
fd) {
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
}
libbgp::FdOutHandler::handleOut
bool handleOut(const uint8_t *buffer, size_t length)
The output implementation.
Definition:
fd-out-handler.cc:25
libbgp::FdOutHandler::FdOutHandler
FdOutHandler(int fd)
Construct a new Fd Out Handler:: Fd Out Handler object.
Definition:
fd-out-handler.cc:21
fd-out-handler.h
File descriptor out handler.
libbgp
Definition:
bgp-afi.h:14
Generated by
1.8.13