dtntest.cc File Reference

#include <errno.h>
#include <oasys/debug/Log.h>
#include <oasys/io/FileUtils.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  DTNSessionUpdateCommand
class  DTNPollChannelCommand
class  DTNBeginPollCommand
class  DTNCancelPollCommand
class  ShutdownCommand

Defines

#define APPEND_STRING_VAL(key, val, val_len)
#define APPEND_INT_VAL(key, val)

Typedefs

typedef std::map< int,
dtn_handle_t
HandleMap

Functions

int main (int argc, char **argv)

Variables

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

Define Documentation

#define APPEND_INT_VAL ( key,
val   ) 
Value:
if (Tcl_ListObjAppendElement(interp, result,                         \
                                     Tcl_NewStringObj(key, -1)) != TCL_OK || \
            Tcl_ListObjAppendElement(interp, result,                         \
                                     Tcl_NewIntObj(val)) != TCL_OK)          \
        {                                                                    \
            resultf("error appending list element");                         \
            return TCL_ERROR;                                                \
        }

Referenced by DTNRecvCommand::exec().

#define APPEND_STRING_VAL ( key,
val,
val_len   ) 
Value:
if (Tcl_ListObjAppendElement(interp, result,                         \
                                     Tcl_NewStringObj(key, -1)) != TCL_OK || \
            Tcl_ListObjAppendElement(interp, result,                         \
                                     Tcl_NewStringObj(val, val_len)) != TCL_OK)\
        {                                                                    \
            resultf("error appending list element");                         \
            return TCL_ERROR;                                                \
        }

Referenced by DTNRecvCommand::exec().


Typedef Documentation

typedef std::map<int, dtn_handle_t> HandleMap

Definition at line 34 of file dtntest.cc.


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 919 of file dtntest.cc.


Variable Documentation

Definition at line 38 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 132 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 284 of file dtntest.cc.

Referenced by DTNSendCommand::DTNSendCommand().

oasys::BitFlagOpt::Case SessionFlagCases[]
Initial value:
 {
    {"subscribe", DTN_SESSION_SUBSCRIBE},
    {"publish",   DTN_SESSION_PUBLISH},
    {"custody",   DTN_SESSION_CUSTODY},
    {0, 0}
}

Definition at line 140 of file dtntest.cc.

Referenced by DTNRegisterCommand::DTNRegisterCommand().

Generated on Sun Nov 21 11:40:50 2010 for DTN Reference Implementation by  doxygen 1.6.3