DTNRecvCommand Class Reference

Inheritance diagram for DTNRecvCommand:

oasys::TclCommand oasys::Logger List of all members.

Detailed Description

Definition at line 519 of file dtntest.cc.

Public Member Functions

void init_opts ()
 DTNRecvCommand ()
int exec (int argc, const char **argv, Tcl_Interp *interp)
 Override this to parse the list of arguments as strings.

Public Attributes

oasys::OptParser parser_
RecvOpts opts_

Classes

struct  RecvOpts


Constructor & Destructor Documentation

DTNRecvCommand::DTNRecvCommand (  )  [inline]

Definition at line 535 of file dtntest.cc.

References oasys::OptParser::addopt(), opts_, parser_, DTNRecvCommand::RecvOpts::payload_file_, DTNRecvCommand::RecvOpts::payload_mem_, and DTNRecvCommand::RecvOpts::timeout_.


Member Function Documentation

void DTNRecvCommand::init_opts (  )  [inline]

Definition at line 531 of file dtntest.cc.

References opts_.

Referenced by exec().

int DTNRecvCommand::exec ( int  argc,
const char **  argv,
Tcl_Interp *  interp 
) [inline, virtual]

Override this to parse the list of arguments as strings.

Parameters:
argc Argument count
argv Argument values
interp Tcl interpreter
Returns:
0 on success, -1 on error

Reimplemented from oasys::TclCommand.

Definition at line 542 of file dtntest.cc.

References dtn_errno(), dtn_free_payload(), DTN_PAYLOAD_FILE, DTN_PAYLOAD_MEM, dtn_recv(), dtn_strerror(), DTN_SUCCESS, errno, init_opts(), log_err, opts_, oasys::OptParser::parse(), parser_, DTNRecvCommand::RecvOpts::payload_file_, DTNRecvCommand::RecvOpts::payload_mem_, oasys::TclCommand::resultf(), DTNRecvCommand::RecvOpts::timeout_, and oasys::TclCommand::wrong_num_args().


Member Data Documentation

oasys::OptParser DTNRecvCommand::parser_

Definition at line 521 of file dtntest.cc.

Referenced by DTNRecvCommand(), and exec().

RecvOpts DTNRecvCommand::opts_

Definition at line 529 of file dtntest.cc.

Referenced by DTNRecvCommand(), exec(), and init_opts().


The documentation for this class was generated from the following file:
Generated on Thu Jun 7 12:54:31 2007 for DTN Reference Implementation by  doxygen 1.5.1