X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FSocketSink.hh;h=742e2dbbd9507b249aff4a1b5e1f536331f6a5ae;hb=92f8630b75f3ef50e73c48cde58645dcd1534e27;hp=985befdea59c0bb284db71e5bf5fafdc16ff64e5;hpb=6be307076aadc9f66bbd89b97d6e42c40f7c0187;p=senf.git diff --git a/PPI/SocketSink.hh b/PPI/SocketSink.hh index 985befd..742e2db 100644 --- a/PPI/SocketSink.hh +++ b/PPI/SocketSink.hh @@ -57,7 +57,7 @@ namespace ppi { senf::ConnectedCommunicationPolicy>::policy > Handle; ///< Handle type supported by this writer - void operator()(Handle handle, Packet packet); + void operator()(Handle handle, Packet const & packet); ///< Write \a packet to \a handle /**< Write the complete \a packet as a datagram to \a handle. @@ -80,7 +80,7 @@ namespace ppi { void destination(senf::INet4SocketAddress & dest); senf::INet4SocketAddress destination(); - void operator()(Handle handle, Packet packet); + void operator()(Handle handle, Packet const & packet); ///< Write \a packet to \a handle /**< Write the complete \a packet as a datagram to \a handle. @@ -91,7 +91,7 @@ namespace ppi { senf::INet4Address source_; senf::INet4Address destination_; unsigned int protocolId_; -}; + }; class IPv6SourceForcingDgramWriter : ConnectedDgramWriter { @@ -108,7 +108,7 @@ namespace ppi { void destination(senf::INet6SocketAddress & dest); senf::INet6SocketAddress destination(); - void operator()(Handle handle, Packet packet); + void operator()(Handle handle, Packet const & packet); ///< Write \a packet to \a handle /**< Write the complete \a packet as a datagram to \a handle.