ESA JPIP server
0.1
|
Class used to identify the HTTP protocol. More...
#include <protocol.h>
Public Member Functions | |
Protocol (int mayorVersion=1, int minorVersion=1) | |
Initialized the protocl with the given version. More... | |
Protocol (const Protocol &protocol) | |
Copy constructor. More... | |
int | mayorVersion () const |
Returns the mayor number of the protocol version. More... | |
int | minorVersion () const |
Returns the minor number of the protocol version. More... | |
Static Public Attributes | |
static const char | CRLF [] = "\r\n" |
String with the characters 13 (CR) and 10 (LF), the line separator used in the HTTP protocol. More... | |
Private Attributes | |
int | mayorVersion_ |
Mayor protocol version. More... | |
int | minorVersion_ |
Minor protocol version. More... | |
Friends | |
ostream & | operator<< (ostream &out, const Protocol &protocol) |
istream & | operator>> (istream &in, Protocol &protocol) |
Class used to identify the HTTP protocol.
It is possible to use this class with standard streams.
|
inline |
Initialized the protocl with the given version.
By default the version is 1.1.
mayorVersion | Mayor protocol version |
minorVersion | Minor protocol version |
|
inline |
Copy constructor.
|
inline |
Returns the mayor number of the protocol version.
|
inline |
Returns the minor number of the protocol version.
|
friend |
|
friend |
|
static |
String with the characters 13 (CR) and 10 (LF), the line separator used in the HTTP protocol.
|
private |
Mayor protocol version.
|
private |
Minor protocol version.