ESA JPIP server  0.1
http::Protocol Class Reference

Class used to identify the HTTP protocol. More...

#include <protocol.h>

Collaboration diagram for http::Protocol:

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)
 

Detailed Description

Class used to identify the HTTP protocol.

It is possible to use this class with standard streams.

Constructor & Destructor Documentation

http::Protocol::Protocol ( int  mayorVersion = 1,
int  minorVersion = 1 
)
inline

Initialized the protocl with the given version.

By default the version is 1.1.

Parameters
mayorVersionMayor protocol version
minorVersionMinor protocol version
http::Protocol::Protocol ( const Protocol protocol)
inline

Copy constructor.

Member Function Documentation

int http::Protocol::mayorVersion ( ) const
inline

Returns the mayor number of the protocol version.

int http::Protocol::minorVersion ( ) const
inline

Returns the minor number of the protocol version.

Friends And Related Function Documentation

ostream& operator<< ( ostream &  out,
const Protocol protocol 
)
friend
istream& operator>> ( istream &  in,
Protocol protocol 
)
friend

Member Data Documentation

const char http::Protocol::CRLF = "\r\n"
static

String with the characters 13 (CR) and 10 (LF), the line separator used in the HTTP protocol.

int http::Protocol::mayorVersion_
private

Mayor protocol version.

int http::Protocol::minorVersion_
private

Minor protocol version.


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