Panda3D
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes

HttpConnection Class Reference

Inheritance diagram for HttpConnection:
Socket_TCP Socket_IP TypedObject MemoryBase Http_Request

List of all members.

Public Member Functions

 HttpConnection (SOCKET sck, Socket_Address &inaddr)
virtual bool BuildPage (BufferedWriter_Growable &_writer, ParsedHttpRequest &parser)=0
int DoReadBody (char *message, int buffersize, Time_Clock &currentTime)
int DoReadHeader (char *message, int buffersize, Time_Clock &currentTime)
virtual TypeHandle force_init_type ()
virtual TypeHandle get_type () const
std::string GetFullmessage ()
const Socket_AddressGetMyAddress (void)
CloseState ProcessMessage (char *message, Time_Clock &currentTime)
int ReadIt (char *message, int buffersize, Time_Clock &currentTime)
void Reset ()
virtual CloseState TryAndFinalize ()

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()
 This function is declared non-inline to work around a compiler bug in g++ 2.96.

Protected Types

enum  STATE_CONNECTIONS {
  READING_HEADER = 1, READING_POST = 2, WAITING_TO_FINALIZE = 3, WRITING_DATA = 4,
  ABORTING = 5
}

Protected Member Functions

int CloseStateWriter (Time_Clock &currentTime)

Protected Attributes

StrTargetBuffer _bodyDetail
std::string _headerDetail
Socket_Address _MyAddress
ParsedHttpRequest _parser
Http_BufferedReader _Reader
STATE_CONNECTIONS _state
Time_Out _Timer
BufferedWriter_Growable _writer

Detailed Description

Definition at line 12 of file http_connection.h.


Member Function Documentation

static void HttpConnection::init_type ( ) [inline, static]

This function is declared non-inline to work around a compiler bug in g++ 2.96.

Making it inline seems to cause problems in the optimizer.

Reimplemented from Socket_TCP.

Reimplemented in Http_Request.

Definition at line 60 of file http_connection.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations