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

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::GopherStateData ( FwdState aFwd)
inline

Definition at line 84 of file gopher.cc.

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

Referenced by gopherStart().

◆ ~GopherStateData()

GopherStateData::~GopherStateData ( )
inline

Definition at line 100 of file gopher.cc.

References buf, deleteThis(), and swanSong().

Member Function Documentation

◆ deleteThis()

void GopherStateData::deleteThis ( const char *  aReason)

Definition at line 159 of file gopher.cc.

References swanSong().

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

◆ operator delete()

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

Definition at line 81 of file gopher.cc.

◆ operator new()

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

Definition at line 81 of file gopher.cc.

◆ swanSong()

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().

◆ toCbdata()

void* GopherStateData::toCbdata ( )
inlinenoexcept

Definition at line 81 of file gopher.cc.

Member Data Documentation

◆ buf

char* GopherStateData::buf

Definition at line 122 of file gopher.cc.

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

◆ CBDATA_GopherStateData

cbdata_type GopherStateData::CBDATA_GopherStateData = CBDATA_UNKNOWN
staticprivate

Definition at line 81 of file gopher.cc.

◆ conversion

enum { ... } GopherStateData::conversion

◆ cso_recno

int GopherStateData::cso_recno

Definition at line 120 of file gopher.cc.

Referenced by gopherSendComplete(), and gopherToHTML().

◆ entry

◆ fwd

FwdState::Pointer GopherStateData::fwd

Definition at line 124 of file gopher.cc.

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

◆ HTML_header_added

int GopherStateData::HTML_header_added

Definition at line 116 of file gopher.cc.

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

◆ HTML_pre

int GopherStateData::HTML_pre

Definition at line 117 of file gopher.cc.

Referenced by gopherEndHTML(), and gopherToHTML().

◆ len

int GopherStateData::len

Definition at line 121 of file gopher.cc.

Referenced by gopherReadReply(), and gopherToHTML().

◆ reply_

HttpReply::Pointer GopherStateData::reply_

Definition at line 125 of file gopher.cc.

Referenced by gopherMimeCreate(), and gopherReadReply().

◆ replybuf

char GopherStateData::replybuf[BUFSIZ]

Definition at line 126 of file gopher.cc.

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

◆ request

char GopherStateData::request[MAX_URL]

Definition at line 119 of file gopher.cc.

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

◆ serverConn

Comm::ConnectionPointer GopherStateData::serverConn

Definition at line 123 of file gopher.cc.

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

◆ type_id

char GopherStateData::type_id

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors