Public Member Functions | Data Fields

TestProxy Struct Reference

Inherits Continuation, and Continuation.

Collaboration diagram for TestProxy:
Collaboration graph
[legend]

Public Member Functions

int done ()
int gets (VIO *vio)
int startEvent (int event, VIO *vio)
int clusterOpenEvent (int event, void *data)
int clusterEvent (int event, VConnection *data)
int fileEvent (int event, DiskVConnection *aremote)
int dnsEvent (int event, HostDBInfo *info)
int cacheCheckEvent (int event, void *data)
int cacheReadEvent (int event, DiskVConnection *aremote)
int cacheCreateCacheFileEvent (int event, VConnection *acachefile)
int cacheSendGetEvent (int event, NetVConnection *aremote)
int cacheTransRemoteToCacheFileEvent (int event, VIO *vio)
int connectEvent (int event, NetVConnection *aremote)
int sendEvent (int event, VIO *vio)
int tunnelEvent (int event, Continuation *cont)
 TestProxy (MIOBuffer *abuf)
int done ()
int startEvent (int event, VIO *vio)
int dnsEvent (int event, HostEnt *ent)
int connectEvent (int event, NetVConnection *aremote)
int sendEvent (int event, VIO *vio)
int tunnelEvent (int event, Continuation *cont)
 TestProxy (MIOBuffer *abuf)

Data Fields

VConnectionvc
VConnectionvconnection_vector [2]
VConnectionremote
MIOBufferinbuf
MIOBufferoutbuf
VIOclusterOutVIO
VIOinVIO
char host [1024]
char * url
char * url_end
char amode
int port
char s [1024]
ClusterVCToken token
OneWayTunneltunnel
char url_str [1024]
VConnectioncachefile
URLurl_struct
HostDBInfohostdbinfo
CacheObjInfo * objinfo
HttpHeader * request_header
NetVConnectionvc
NetVConnectionremote
char * host

Detailed Description

Definition at line 34 of file TestProxy.cc.


Constructor & Destructor Documentation

TestProxy::TestProxy ( MIOBuffer abuf  )  [inline]

Definition at line 363 of file TestProxy.cc.

References SET_HANDLER, and startEvent().

TestProxy::TestProxy ( MIOBuffer abuf  )  [inline]

Definition at line 130 of file TestSimpleProxy.cc.

References SET_HANDLER, and startEvent().


Member Function Documentation

int TestProxy::cacheCheckEvent ( int  event,
void *  data 
) [inline]
int TestProxy::cacheCreateCacheFileEvent ( int  event,
VConnection acachefile 
) [inline]
int TestProxy::cacheReadEvent ( int  event,
DiskVConnection *  aremote 
) [inline]

Definition at line 248 of file TestProxy.cc.

References CACHE_EVENT_OPEN_READ, done(), remote, SET_HANDLER, TUNNEL_TILL_DONE, tunnelEvent(), and vc.

Referenced by cacheCheckEvent().

int TestProxy::cacheSendGetEvent ( int  event,
NetVConnection aremote 
) [inline]
int TestProxy::cacheTransRemoteToCacheFileEvent ( int  event,
VIO vio 
) [inline]
int TestProxy::clusterEvent ( int  event,
VConnection data 
) [inline]

Definition at line 180 of file TestProxy.cc.

References VConnection::do_io(), done(), inbuf, INT64_MAX, VIO::READ, SET_HANDLER, startEvent(), and vc.

int TestProxy::clusterOpenEvent ( int  event,
void *  data 
) [inline]
int TestProxy::connectEvent ( int  event,
NetVConnection aremote 
) [inline]
int TestProxy::connectEvent ( int  event,
NetVConnection aremote 
) [inline]
int TestProxy::dnsEvent ( int  event,
HostEnt ent 
) [inline]

Definition at line 75 of file TestSimpleProxy.cc.

References connectEvent(), done(), netProcessor, and SET_HANDLER.

int TestProxy::dnsEvent ( int  event,
HostDBInfo info 
) [inline]
int TestProxy::done (  )  [inline]

Definition at line 41 of file TestSimpleProxy.cc.

References VIO::CLOSE, VConnection::do_io(), free_MIOBuffer(), inbuf, outbuf, remote, and vc.

int TestProxy::done (  )  [inline]
int TestProxy::fileEvent ( int  event,
DiskVConnection *  aremote 
) [inline]

Definition at line 191 of file TestProxy.cc.

References done(), remote, SET_HANDLER, tunnel, TUNNEL_TILL_DONE, tunnelEvent(), and vc.

Referenced by startEvent().

int TestProxy::gets ( VIO vio  )  [inline]

Definition at line 75 of file TestProxy.cc.

References amode, VIO::buffer, s, and MIOBuffer::start().

Referenced by startEvent().

int TestProxy::sendEvent ( int  event,
VIO vio 
) [inline]
int TestProxy::sendEvent ( int  event,
VIO vio 
) [inline]
int TestProxy::startEvent ( int  event,
VIO vio 
) [inline]
int TestProxy::startEvent ( int  event,
VIO vio 
) [inline]
int TestProxy::tunnelEvent ( int  event,
Continuation cont 
) [inline]

Definition at line 117 of file TestSimpleProxy.cc.

References done(), remote, url, vc, and VC_EVENT_EOS.

int TestProxy::tunnelEvent ( int  event,
Continuation cont 
) [inline]

Field Documentation

Definition at line 43 of file TestProxy.cc.

Referenced by cacheCheckEvent(), and gets().

Definition at line 49 of file TestProxy.cc.

Referenced by cacheCreateCacheFileEvent(), cacheTransRemoteToCacheFileEvent(), and done().

Definition at line 41 of file TestProxy.cc.

Referenced by clusterOpenEvent(), sendEvent(), and tunnelEvent().

char TestProxy::host[1024]

Definition at line 38 of file TestSimpleProxy.cc.

Definition at line 51 of file TestProxy.cc.

Referenced by cacheCreateCacheFileEvent(), and dnsEvent().

Definition at line 39 of file TestProxy.cc.

Referenced by clusterEvent(), clusterOpenEvent(), and done().

Definition at line 42 of file TestProxy.cc.

Referenced by startEvent(), and tunnelEvent().

CacheObjInfo* TestProxy::objinfo

Definition at line 52 of file TestProxy.cc.

Referenced by cacheCheckEvent().

Definition at line 40 of file TestProxy.cc.

Referenced by cacheSendGetEvent(), connectEvent(), and done().

Definition at line 44 of file TestProxy.cc.

Referenced by cacheCreateCacheFileEvent(), and startEvent().

Definition at line 35 of file TestSimpleProxy.cc.

Definition at line 53 of file TestProxy.cc.

Referenced by cacheCheckEvent().

Definition at line 45 of file TestProxy.cc.

Referenced by gets(), and startEvent().

Definition at line 46 of file TestProxy.cc.

Definition at line 47 of file TestProxy.cc.

Referenced by clusterOpenEvent(), done(), fileEvent(), and sendEvent().

Definition at line 43 of file TestProxy.cc.

Referenced by cacheSendGetEvent(), connectEvent(), startEvent(), and tunnelEvent().

Definition at line 43 of file TestProxy.cc.

Referenced by cacheSendGetEvent(), connectEvent(), and startEvent().

char TestProxy::url_str[1024]

Definition at line 48 of file TestProxy.cc.

Referenced by dnsEvent(), and startEvent().

Definition at line 50 of file TestProxy.cc.

Referenced by cacheCheckEvent(), and dnsEvent().

Definition at line 34 of file TestSimpleProxy.cc.

Definition at line 37 of file TestProxy.cc.

Referenced by cacheTransRemoteToCacheFileEvent().


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