15 if (!
proto.os().isOk()) {
24 std::string from =
proto.getRoute().getFromName();
25 Bytes b2((
char*)from.c_str(),from.length());
30 return proto.os().isOk();
void getHeader(Bytes &header) const override
Provide 8 bytes describing this connection sufficiently to allow the other side of a connection to se...
bool sendHeader(ConnectionState &proto) override
Write a header appropriate to the carrier to the connection, followed by any carrier-specific data.
A mini-server for performing network communication in the background.
void write(bool forceStrict=false)
Write the current object being returned by BufferedPort::prepare.
A simple abstraction for a block of bytes.
The basic state of a connection - route, streams in use, etc.
An abstraction for a block of bytes, with optional responsibility for allocating/destroying that bloc...
const Bytes & bytes() const