534 Simulation Technologies in Networking and Communications
APP_LINK_16_CBR_CLIENT,
APP_UWTM_CLIENT,
APP_UWTM_SERVER,
...
APP_PLACEHOLDER
};
2. Add the model (i.e., TRACE_UWTM) to the enumeration “TraceProtocolType” dened in
“qualnet/include/trace.h” to provide detailed traces of packets as they traverse the protocol
stack at each node.
enum TraceProtocolType {
TRACE_UNDEFINED = 0,
...
TRACE_UWTM,
//Must be last one!!!
TRACE_ANY_PROTOCOL
};
3. Include the underwater surveillance trafc model in the source le “qualnet/main/applica-
tion.cpp” in order for generic functions to call corresponding functions of the model.
#include ``app_uwtm.h’’
4. Modify the function “APP_InitializeApplications” in the le “qualnet/main/application.
cpp” as ...