Socket::_Endl Class Reference

#include <sockets.h>

List of all members.


Detailed Description

Line ending object, similar to std::endl.

When dealing with plain-text protocols over sockets,
is used to indicate newline. Usage:

 SocketClient *c;
 *c << "Message" << Socket::Endl;
 

Definition at line 572 of file sockets.h.


Public Member Functions

 operator std::string ()
 Output operator to Sockets.

Friends

bool operator== (const std::string &s, const _Endl &)
 Comparison operator to check if string is line end.

Member Function Documentation

Socket::_Endl::operator std::string  )  [inline]
 

Output operator to Sockets.

Definition at line 575 of file sockets.h.

References operator std::string().

Referenced by operator std::string().

Here is the call graph for this function:


Friends And Related Function Documentation

bool operator== const std::string &  s,
const _Endl
[friend]
 

Comparison operator to check if string is line end.

Definition at line 579 of file sockets.h.


The documentation for this class was generated from the following file: