#include <http-aux.h>
Inheritance diagram for HttpUpdateData:


Definition at line 314 of file http-aux.h.
Public Member Functions | |
| void | add (int i, ClientPage *p) |
| virtual AppData * | copy () |
| virtual int | cost () const |
| HttpUpdateData (HttpUpdateData &d) | |
| HttpUpdateData (int id, int n) | |
| int & | id () |
| int | num () const |
| int | pgsize () const |
| double & | rec_age (int i) |
| double & | rec_mtime (int i) |
| char * | rec_page (int i) |
| int & | rec_size (int i) |
| void | set_pgsize (int s) |
| virtual int | size () const |
| AppDataType | type () const |
| virtual | ~HttpUpdateData () |
Private Member Functions | |
| PageRec * | rec () |
Private Attributes | |
| int | num_ |
| int | pgsize_ |
| PageRec * | rec_ |
Data Structures | |
| struct | PageRec |
|
||||||||||||
|
Definition at line 335 of file http-aux.h. References num_, pgsize_, and rec_. Referenced by copy(). 00335 : HttpData(HTTP_UPDATE, id) { 00336 num_ = n; 00337 pgsize_ = 0; 00338 if (num_ > 0) 00339 rec_ = new PageRec[num_]; 00340 else 00341 rec_ = NULL; 00342 }
|
|
|
Definition at line 343 of file http-aux.h. References num_, pgsize_, and rec_. 00343 : HttpData(d) { 00344 num_ = d.num_; 00345 pgsize_ = d.pgsize_; 00346 if (num_ > 0) { 00347 rec_ = new PageRec[num_]; 00348 memcpy(rec_, d.rec_, num_*sizeof(PageRec)); 00349 } else 00350 rec_ = NULL; 00351 }
|
|
|
Definition at line 352 of file http-aux.h. References rec_.
|
|
||||||||||||
|
Definition at line 369 of file http-aux.h. References HttpUpdateData::PageRec::copy(), pgsize_, rec(), and Page::size(). Referenced by HttpMInvalCache::pack_upd().
Here is the call graph for this function: ![]() |
|
|
Reimplemented from HttpData. Definition at line 361 of file http-aux.h. References HttpUpdateData(). 00361 { 00362 return (new HttpUpdateData(*this)); 00363 }
Here is the call graph for this function: ![]() |
|
|
Reimplemented from HttpData. Definition at line 360 of file http-aux.h. References pgsize_. 00360 { return pgsize_; }
|
|
|
Definition at line 184 of file http-aux.h. References HttpData::id_. Referenced by HttpMInvalCache::recv_inv(), and HttpMInvalCache::recv_leave(). 00184 { return id_; }
|
|
|
Definition at line 365 of file http-aux.h. References num_. Referenced by HttpMInvalCache::recv_upd(). 00365 { return num_; }
|
|
|
Definition at line 366 of file http-aux.h. References pgsize_. Referenced by HttpMInvalCache::send_upd(). 00366 { return pgsize_; }
|
|
|
Definition at line 333 of file http-aux.h. References rec_. Referenced by add(), rec_age(), rec_mtime(), rec_page(), and rec_size(). 00333 { return rec_; }
|
|
|
Definition at line 376 of file http-aux.h. References HttpUpdateData::PageRec::age_, and rec(). Referenced by HttpMInvalCache::command().
Here is the call graph for this function: ![]() |
|
|
Definition at line 377 of file http-aux.h. References HttpUpdateData::PageRec::mtime_, and rec(). Referenced by HttpMInvalCache::command().
Here is the call graph for this function: ![]() |
|
|
Definition at line 374 of file http-aux.h. References HttpUpdateData::PageRec::pg_, and rec(). Referenced by HttpMInvalCache::command().
Here is the call graph for this function: ![]() |
|
|
Definition at line 375 of file http-aux.h. References rec(), and HttpUpdateData::PageRec::size_. Referenced by HttpMInvalCache::command().
Here is the call graph for this function: ![]() |
|
|
Definition at line 368 of file http-aux.h. References pgsize_. Referenced by HttpMInvalCache::command(). 00368 { pgsize_ = s; }
|
|
|
Reimplemented from HttpData. Definition at line 357 of file http-aux.h. References num_, and HttpData::size(). 00357 { 00358 return HttpData::size() + 2*sizeof(int)+num_*sizeof(PageRec); 00359 }
Here is the call graph for this function: ![]() |
|
|
Definition at line 105 of file ns-process.h. References AppData::type_. Referenced by Packet::accessdata(), TcpApp::process_data(), MediaClient::process_data(), MediaCache::process_data(), HttpMInvalCache::process_data(), HttpApp::process_data(), UdpAgent::recv(), and MessagePassingAgent::recv(). 00105 { return type_; }
|
|
|
Definition at line 330 of file http-aux.h. Referenced by HttpUpdateData(), num(), and size(). |
|
|
Definition at line 331 of file http-aux.h. Referenced by add(), cost(), HttpUpdateData(), pgsize(), and set_pgsize(). |
|
|
Definition at line 332 of file http-aux.h. Referenced by HttpUpdateData(), rec(), and ~HttpUpdateData(). |
1.4.6