Collaboration diagram for GopherStateData:

Public Types

enum  {
  NORMAL,
  HTML_DIR,
  HTML_INDEX_RESULT,
  HTML_CSO_RESULT,
  HTML_INDEX_PAGE,
  HTML_CSO_PAGE
}
 

Public Member Functions

void * operator new (size_t size)
 
void operator delete (void *address)
 
void * toCbdata () noexcept
 
 GopherStateData (FwdState *aFwd)
 
 ~GopherStateData ()
 
void deleteThis (const char *aReason)
 
void swanSong ()
 

Public Attributes

StoreEntryentry
 
enum GopherStateData:: { ... }  conversion
 
int HTML_header_added
 
int HTML_pre
 
char type_id
 
char request [MAX_URL]
 
int cso_recno
 
int len
 
char * buf
 
Comm::ConnectionPointer serverConn
 
FwdState::Pointer fwd
 
HttpReply::Pointer reply_
 
char replybuf [BUFSIZ]
 

Static Private Attributes

static cbdata_type CBDATA_GopherStateData = CBDATA_UNKNOWN
 

Detailed Description

Gopher Gateway Internals

Gopher is somewhat complex and gross because it must convert from the Gopher protocol to HTTP.

Definition at line 79 of file gopher.cc.

Member Enumeration Documentation

anonymous enum
Enumerator
NORMAL 
HTML_DIR 
HTML_INDEX_RESULT 
HTML_CSO_RESULT 
HTML_INDEX_PAGE 
HTML_CSO_PAGE 

Definition at line 108 of file gopher.cc.

Constructor & Destructor Documentation

GopherStateData::GopherStateData ( FwdState aFwd)
inline

Definition at line 84 of file gopher.cc.

References buf, entry, StoreEntry::lock(), MEM_4K_BUF, memAllocate(), replybuf, and request.

GopherStateData::~GopherStateData ( )
inline

Definition at line 100 of file gopher.cc.

References buf, and swanSong().

Member Function Documentation

void GopherStateData::deleteThis ( const char *  aReason)

Definition at line 159 of file gopher.cc.

References swanSong().

Referenced by gopherStateFree().

void GopherStateData::operator delete ( void *  address)
inline

Definition at line 81 of file gopher.cc.

void* GopherStateData::operator new ( size_t  size)
inline

Definition at line 81 of file gopher.cc.

void GopherStateData::swanSong ( )

Definition at line 166 of file gopher.cc.

References buf, entry, MEM_4K_BUF, memFree(), and StoreEntry::unlock().

Referenced by deleteThis(), and ~GopherStateData().

void* GopherStateData::toCbdata ( )
inlinenoexcept

Definition at line 81 of file gopher.cc.

Member Data Documentation

char* GopherStateData::buf

Definition at line 122 of file gopher.cc.

Referenced by GopherStateData(), gopherToHTML(), swanSong(), and ~GopherStateData().

cbdata_type GopherStateData::CBDATA_GopherStateData = CBDATA_UNKNOWN
staticprivate

Definition at line 81 of file gopher.cc.

enum { ... } GopherStateData::conversion
int GopherStateData::cso_recno

Definition at line 120 of file gopher.cc.

Referenced by gopherSendComplete(), and gopherToHTML().

FwdState::Pointer GopherStateData::fwd

Definition at line 124 of file gopher.cc.

Referenced by gopherReadReply(), gopherSendComplete(), and gopherTimeout().

int GopherStateData::HTML_header_added

Definition at line 116 of file gopher.cc.

Referenced by gopherEndHTML(), gopherSendComplete(), and gopherToHTML().

int GopherStateData::HTML_pre

Definition at line 117 of file gopher.cc.

Referenced by gopherEndHTML(), and gopherToHTML().

int GopherStateData::len

Definition at line 121 of file gopher.cc.

Referenced by gopherToHTML().

HttpReply::Pointer GopherStateData::reply_

Definition at line 125 of file gopher.cc.

Referenced by gopherMimeCreate(), and gopherReadReply().

char GopherStateData::replybuf[BUFSIZ]

Definition at line 126 of file gopher.cc.

Referenced by gopherReadReply(), gopherSendComplete(), and GopherStateData().

char GopherStateData::request[MAX_URL]

Definition at line 119 of file gopher.cc.

Referenced by gopherMimeCreate(), gopherSendRequest(), gopherStart(), and GopherStateData().

Comm::ConnectionPointer GopherStateData::serverConn

Definition at line 123 of file gopher.cc.

Referenced by gopherReadReply(), gopherSendComplete(), gopherSendRequest(), and gopherStart().

char GopherStateData::type_id

Definition at line 118 of file gopher.cc.

Referenced by gopherMimeCreate(), gopherSendComplete(), gopherSendRequest(), and gopherStart().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors