Inherits Continuation, and Continuation.
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 | |
VConnection * | vc |
VConnection * | vconnection_vector [2] |
VConnection * | remote |
MIOBuffer * | inbuf |
MIOBuffer * | outbuf |
VIO * | clusterOutVIO |
VIO * | inVIO |
char | host [1024] |
char * | url |
char * | url_end |
char | amode |
int | port |
char | s [1024] |
ClusterVCToken | token |
OneWayTunnel * | tunnel |
char | url_str [1024] |
VConnection * | cachefile |
URL * | url_struct |
HostDBInfo * | hostdbinfo |
CacheObjInfo * | objinfo |
HttpHeader * | request_header |
NetVConnection * | vc |
NetVConnection * | remote |
char * | host |
Definition at line 34 of file TestProxy.cc.
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().
int TestProxy::cacheCheckEvent | ( | int | event, | |
void * | data | |||
) | [inline] |
Definition at line 218 of file TestProxy.cc.
References amode, CACHE_EVENT_LOOKUP, CACHE_EVENT_LOOKUP_FAILED, cacheCreateCacheFileEvent(), cacheProcessor, cacheReadEvent(), done(), objinfo, CacheProcessor::open_read(), CacheProcessor::open_write(), CacheProcessor::remove(), request_header, SET_HANDLER, and url_struct.
Referenced by dnsEvent().
int TestProxy::cacheCreateCacheFileEvent | ( | int | event, | |
VConnection * | acachefile | |||
) | [inline] |
Definition at line 259 of file TestProxy.cc.
References CACHE_EVENT_OPEN_WRITE, cachefile, cacheSendGetEvent(), host, hostdbinfo, HostDBInfo::ip, netProcessor, port, and SET_HANDLER.
Referenced by cacheCheckEvent().
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] |
Definition at line 270 of file TestProxy.cc.
References cacheTransRemoteToCacheFileEvent(), VConnection::do_io(), done(), MIOBuffer::fill(), host, INT64_MAX, NET_EVENT_OPEN, new_MIOBuffer, outbuf, remote, SET_HANDLER, MIOBuffer::start(), url, url_end, and VIO::WRITE.
Referenced by cacheCreateCacheFileEvent().
int TestProxy::cacheTransRemoteToCacheFileEvent | ( | int | event, | |
VIO * | vio | |||
) | [inline] |
Definition at line 288 of file TestProxy.cc.
References VIO::buffer, cachefile, done(), EVENT_CONT, remote, SET_HANDLER, TUNNEL_TILL_DONE, tunnelEvent(), vc, VC_EVENT_WRITE_READY, and vconnection_vector.
Referenced by cacheSendGetEvent().
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] |
Definition at line 164 of file TestProxy.cc.
References CLUSTER_EVENT_OPEN, CLUSTER_EVENT_OPEN_FAILED, clusterOutVIO, VConnection::do_io(), done(), inbuf, ink_assert, INT64_MAX, remote, SET_HANDLER, tunnel, TUNNEL_TILL_DONE, tunnelEvent(), vc, and VIO::WRITE.
int TestProxy::connectEvent | ( | int | event, | |
NetVConnection * | aremote | |||
) | [inline] |
Definition at line 87 of file TestSimpleProxy.cc.
References VConnection::do_io(), done(), MIOBuffer::fill(), INT64_MAX, new_MIOBuffer, outbuf, remote, sendEvent(), SET_HANDLER, MIOBuffer::start(), url, url_end, and VIO::WRITE.
int TestProxy::connectEvent | ( | int | event, | |
NetVConnection * | aremote | |||
) | [inline] |
Definition at line 307 of file TestProxy.cc.
References VConnection::do_io(), done(), MIOBuffer::fill(), host, INT64_MAX, NET_EVENT_OPEN, new_MIOBuffer, outbuf, remote, sendEvent(), SET_HANDLER, MIOBuffer::start(), url, url_end, and VIO::WRITE.
Referenced by dnsEvent().
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] |
Definition at line 203 of file TestProxy.cc.
References cacheCheckEvent(), cacheProcessor, done(), hostdbinfo, CacheProcessor::lookup(), SET_HANDLER, url_str, and url_struct.
Referenced by startEvent().
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] |
Definition at line 55 of file TestProxy.cc.
References cachefile, VIO::CLOSE, VConnection::do_io(), free_MIOBuffer(), inbuf, ink_assert, outbuf, remote, tunnel, and vc.
Referenced by cacheCheckEvent(), cacheReadEvent(), cacheSendGetEvent(), cacheTransRemoteToCacheFileEvent(), clusterEvent(), clusterOpenEvent(), connectEvent(), dnsEvent(), fileEvent(), sendEvent(), startEvent(), and tunnelEvent().
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] |
Definition at line 104 of file TestSimpleProxy.cc.
References VIO::buffer, done(), EVENT_CONT, remote, SET_HANDLER, TUNNEL_TILL_DONE, tunnelEvent(), vc, and VC_EVENT_WRITE_READY.
int TestProxy::sendEvent | ( | int | event, | |
VIO * | vio | |||
) | [inline] |
Definition at line 324 of file TestProxy.cc.
References VIO::buffer, clusterOutVIO, done(), EVENT_CONT, remote, SET_HANDLER, tunnel, TUNNEL_TILL_DONE, tunnelEvent(), vc, and VC_EVENT_WRITE_READY.
Referenced by connectEvent().
int TestProxy::startEvent | ( | int | event, | |
VIO * | vio | |||
) | [inline] |
Definition at line 107 of file TestProxy.cc.
References dnsEvent(), done(), fileEvent(), gets(), host, hostDBProcessor, ink_assert, ink_strlcpy(), inVIO, port, s, SET_HANDLER, url, url_end, url_str, vc, VC_EVENT_READ_READY, and VIO::vc_server.
Referenced by clusterEvent(), and TestProxy().
int TestProxy::startEvent | ( | int | event, | |
VIO * | vio | |||
) | [inline] |
Definition at line 55 of file TestSimpleProxy.cc.
References VIO::buffer, dnsEvent(), dnsProcessor, done(), EVENT_DONE, DNSProcessor::gethostbyname(), host, s, SET_HANDLER, url, url_end, vc, VC_EVENT_READ_READY, and VIO::vc_server.
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] |
Definition at line 343 of file TestProxy.cc.
References clusterOutVIO, done(), inVIO, remote, vc, VC_EVENT_EOS, VC_EVENT_ERROR, and VC_EVENT_WRITE_COMPLETE.
Referenced by cacheReadEvent(), cacheTransRemoteToCacheFileEvent(), clusterOpenEvent(), fileEvent(), and sendEvent().
char TestProxy::amode |
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 43 of file TestProxy.cc.
Referenced by cacheCreateCacheFileEvent(), cacheSendGetEvent(), connectEvent(), and startEvent().
char* TestProxy::host |
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().
int TestProxy::port |
Definition at line 44 of file TestProxy.cc.
Referenced by cacheCreateCacheFileEvent(), and startEvent().
Definition at line 35 of file TestSimpleProxy.cc.
Definition at line 38 of file TestProxy.cc.
Referenced by cacheReadEvent(), cacheSendGetEvent(), cacheTransRemoteToCacheFileEvent(), clusterOpenEvent(), connectEvent(), done(), fileEvent(), sendEvent(), and tunnelEvent().
HttpHeader* TestProxy::request_header |
Definition at line 53 of file TestProxy.cc.
Referenced by cacheCheckEvent().
char TestProxy::s |
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().
char * TestProxy::url |
Definition at line 43 of file TestProxy.cc.
Referenced by cacheSendGetEvent(), connectEvent(), startEvent(), and tunnelEvent().
char * TestProxy::url_end |
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 36 of file TestProxy.cc.
Referenced by cacheReadEvent(), cacheTransRemoteToCacheFileEvent(), clusterEvent(), clusterOpenEvent(), done(), fileEvent(), sendEvent(), startEvent(), and tunnelEvent().
Definition at line 34 of file TestSimpleProxy.cc.
Definition at line 37 of file TestProxy.cc.
Referenced by cacheTransRemoteToCacheFileEvent().