Inheritance diagram for TcpAppString:


Definition at line 106 of file tcpapp.cc.
Public Member Functions | |
| virtual AppData * | copy () |
| void | set_string (const char *s) |
| virtual int | size () const |
| char * | str () |
| TcpAppString (TcpAppString &d) | |
| TcpAppString () | |
| AppDataType | type () const |
| virtual | ~TcpAppString () |
Private Attributes | |
| int | size_ |
| char * | str_ |
|
|
Definition at line 111 of file tcpapp.cc. Referenced by copy(). 00111 : AppData(TCPAPP_STRING), size_(0), str_(NULL) {}
|
|
|
Definition at line 112 of file tcpapp.cc. 00112 : AppData(d) { 00113 size_ = d.size_; 00114 if (size_ > 0) { 00115 str_ = new char[size_]; 00116 strcpy(str_, d.str_); 00117 } else 00118 str_ = NULL; 00119 }
|
|
|
Definition at line 120 of file tcpapp.cc. References str_.
|
|
|
Implements AppData. Definition at line 139 of file tcpapp.cc. References TcpAppString(). 00139 { 00140 return new TcpAppString(*this); 00141 }
Here is the call graph for this function: ![]() |
|
|
Definition at line 129 of file tcpapp.cc. Referenced by TcpApp::command(). 00129 { 00130 if ((s == NULL) || (*s == 0)) 00131 str_ = NULL, size_ = 0; 00132 else { 00133 size_ = strlen(s) + 1; 00134 str_ = new char[size_]; 00135 assert(str_ != NULL); 00136 strcpy(str_, s); 00137 } 00138 }
|
|
|
Reimplemented from AppData. Definition at line 126 of file tcpapp.cc. References AppData::size(), and size_. 00126 { return AppData::size() + size_; }
Here is the call graph for this function: ![]() |
|
|
Definition at line 125 of file tcpapp.cc. References str_. 00125 { return str_; }
|
|
|
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 108 of file tcpapp.cc. Referenced by set_string(), size(), and TcpAppString(). |
|
|
Definition at line 109 of file tcpapp.cc. Referenced by set_string(), str(), TcpAppString(), and ~TcpAppString(). |
1.4.6