X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FSocketWriter.ct;h=9c01233046e6e5857a61e52a2f77b9c339e9f14d;hb=821f1bf89a0e3ef83469c56e4a9a21c39b956cb4;hp=c2dc70f712e67f8ee00a33e6843b1c398846a4ba;hpb=81ffa1c459b96dd44472bcef37e1e373934ee138;p=senf.git diff --git a/PPI/SocketWriter.ct b/PPI/SocketWriter.ct index c2dc70f..9c01233 100644 --- a/PPI/SocketWriter.ct +++ b/PPI/SocketWriter.ct @@ -31,6 +31,26 @@ ///////////////////////////////ct.p//////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// +// senf::ppi::module::ActiveSocketWriter + +template +prefix_ senf::ppi::module::ActiveSocketWriter::ActiveSocketWriter(Handle handle) + : handle_(handle), event_(handle_, IOEvent::Write), writer_() +{ + registerEvent( &ActiveSocketWriter::write, event_ ); + route(input, event_); +} + +//////////////////////////////////////// +// private members + +template +prefix_ void senf::ppi::module::ActiveSocketWriter::write() +{ + writer_(handle_,input()); +} + +/////////////////////////////////////////////////////////////////////////// // senf::ppi::module::PassiveSocketWriter template