X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=src%2Fserver.cpp;h=a49bc7a31fa890f9b91bcf1afa0b26b2f017ce01;hp=331bfc3c48fe860939a67b66d2eb27eea4670777;hb=45508d07e1c407d1148ce7340c55f2a28a3a3368;hpb=04d86ba4ad4f14ab08f38804e772ec46a8ac92b0 diff --git a/src/server.cpp b/src/server.cpp index 331bfc3..a49bc7a 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -89,7 +89,7 @@ void server_connection::reset_timeout() @param event event the function will be called at @param func functor (see boost function) that will be called - @example use boost::bind to bind to member functions and parameters like this: + @note use boost::bind to bind to member functions and parameters like this: 17 is a fixed parameter that is always added to the call c.add_callback(connection_closed,bind(&my_class::func_to_call_back, boost::ref(*this), 17)); */ @@ -128,7 +128,7 @@ server::~server() @param event event the function will be called at @param func functor (see boost function) that will be called - @example use boost::bind to bind to member functions like this: + @note use boost::bind to bind to member functions like this: s.add_callback(new_connection,bind(&my_class::func_to_call_back, boost::ref(*this), _1)); */ void server::add_callback(callback_event_type event, const boost::function& func) @@ -208,7 +208,7 @@ void server::cleanup() if (i->second->is_closed() && !i->second->packet_available()) { // closed and no usable data in buffer -> remove - LOGSTREAM(debug,"removing conneciton " << i->first << " because it is closed and no more data waiting"); + LOGSTREAM(debug,"removing connection " << i->first << " because it is closed and no more data waiting"); delete i->second; connections.erase(i);