dtntest.cc File Reference

#include <errno.h>
#include <oasys/debug/Log.h>
#include <oasys/io/NetUtils.h>
#include <oasys/tclcmd/ConsoleCommand.h>
#include <oasys/tclcmd/TclCommand.h>
#include <oasys/util/Getopt.h>
#include <oasys/util/OptParser.h>
#include <dtn_api.h>
#include <dtn_ipc.h>
#include <APIEndpointIDOpt.h>

Go to the source code of this file.

Classes

struct  State
class  DTNOpenCommand
struct  DTNOpenCommand::OpenOpts
class  DTNCloseCommand
class  DTNRegisterCommand
struct  DTNRegisterCommand::RegistrationOpts
class  DTNUnregisterCommand
class  DTNSendCommand
struct  DTNSendCommand::SendOpts
class  DTNBindCommand
class  DTNUnbindCommand
class  DTNRecvCommand
struct  DTNRecvCommand::RecvOpts
class  ShutdownCommand

Typedefs

typedef std::map< int, dtn_handle_tHandleMap

Functions

int main (int argc, char **argv)

Variables

int dtnipc_version
oasys::EnumOpt::Case FailureActionCases []
oasys::EnumOpt::Case PriorityCases []


Typedef Documentation

typedef std::map<int, dtn_handle_t> HandleMap

Definition at line 30 of file dtntest.cc.


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 640 of file dtntest.cc.

References oasys::Getopt::addopt(), oasys::ConsoleCommand::addr_, oasys::TclCommandInterp::command_server(), daemon(), oasys::TclCommandInterp::exec_file(), oasys::Getopt::getopt(), oasys::TclCommandInterp::init(), oasys::Log::init(), oasys::TclCommandInterp::instance(), intoa, log_notice_p, oasys::ConsoleCommand::port_, oasys::ConsoleCommand::prompt_, oasys::TclCommandInterp::reg(), oasys::Log::shutdown(), oasys::TclCommandInterp::shutdown(), oasys::ConsoleCommand::stdio_, and oasys::Getopt::usage().


Variable Documentation

int dtnipc_version

Definition at line 34 of file dtn_ipc.c.

Referenced by dtnipc_open(), and DTNOpenCommand::exec().

oasys::EnumOpt::Case FailureActionCases[]

Initial value:

 {
    {"drop",  DTN_REG_DROP},
    {"defer", DTN_REG_DEFER},
    {"exec",  DTN_REG_EXEC},
    {0, 0}
}

Definition at line 128 of file dtntest.cc.

Referenced by DTNRegisterCommand::DTNRegisterCommand().

oasys::EnumOpt::Case PriorityCases[]

Initial value:

 {
    {"bulk",      COS_BULK},
    {"normal",    COS_NORMAL},
    {"expedited", COS_EXPEDITED},
    {0, 0}
}

Definition at line 268 of file dtntest.cc.

Referenced by DTNSendCommand::DTNSendCommand().


Generated on Thu Jun 7 16:56:53 2007 for DTN Reference Implementation by  doxygen 1.5.1