#include <boost/scoped_ptr.hpp>
#include "FileHandle.hh"
-///////////////////////////////ih.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
namespace senf {
template <class T>
StreamableString & operator<<(T const & other);
- ///< Value assigment
+ ///< Value assignment
/**< This operator will assign the string from any
arbitrary type. It will use boost::lexical_cast to
- convert the argument to its string representation.
+ convert the argument to its string representation.
If the string is non-empty, an additional separating
comma is added to the string. */
: public FileBody
{
public:
- ///////////////////////////////////////////////////////////////////////////
+ //-/////////////////////////////////////////////////////////////////////////////////////////
// Types
typedef boost::intrusive_ptr<SocketBody> ptr;
- ///////////////////////////////////////////////////////////////////////////
+ //-/////////////////////////////////////////////////////////////////////////////////////////
///\name Structors and default members
- ///@{
+ //\{
SocketBody(bool isServer); /**< \param isServer \c true, if this socket is a server
socket, false otherwise */
// no copy
// no conversion constructors
- ///@}
- ///////////////////////////////////////////////////////////////////////////
+ //\}
+ //-/////////////////////////////////////////////////////////////////////////////////////////
SocketProtocol & protocol() const; ///< Access the protocol instance
socket whenever it is closed.
\throws senf::SystemException */
virtual void v_terminate(); ///< Forcibly close socket
- /**< This override will automatically \c shutfown() the
+ /**< This override will automatically \c shutdown() the
socket whenever it is called. Additionally it will
disable SO_LINGER to ensure, that v_terminate will not
- block. Like the overriden method, this member will ignore
- failures and will never throw. It therefore safe to be
- called from a destructor. */
+ block. Like the overridden method, this member will
+ ignore failures and will never throw. It therefore
+ safe to be called from a destructor. */
virtual bool v_eof() const; ///< Check for eof condition
/**< Since the eof check for sockets is very protocol
dependent, this member will forward the call to
};
template <class SProtocol>
- class ProtocolSocketBody
- : public SocketBody,
+ class ProtocolSocketBody
+ : public SocketBody,
private SProtocol,
public senf::pool_alloc_mixin< ProtocolSocketBody<SProtocol> >
{
/**< \param isServer \c true, if this socket is a server
socket, false otherwise
\param fd socket file descriptor */
-
+
private:
virtual SocketProtocol const & v_protocol() const;
virtual std::string v_protocolName() const;
}
-///////////////////////////////ih.e////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
#endif
\f