L:/channel/channel/examples/local_chan_conn/local_chan_conn.cpp File Reference

#include "ace/OS_main.h"
#include "ace/ACE.h"
#include "ace/Auto_Ptr.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_stdio.h"
#include "ace/Get_Opt.h"
#include <iostream>
#include <string>
#include <Channel.h>

Go to the source code of this file.

Classes

struct  Test_String_Msg
class  My_Callback

Typedefs

typedef string IdType
typedef Channel< IdTypeChan
typedef Channel< IdType >::Msg ChanMsg

Functions

int ACE_TMAIN (int argc, ACE_TCHAR *argv[])

Variables

std::string PING_MSG = "_PING_"
std::string PONG_MSG = "_PONG_"
std::string TEST_STRING_MSG = "_TEST_"


Typedef Documentation

typedef Channel<IdType> Chan
 

Definition at line 58 of file local_chan_conn.cpp.

typedef Channel<IdType>::Msg ChanMsg
 

Definition at line 59 of file local_chan_conn.cpp.

typedef string IdType
 

Definition at line 34 of file local_chan_conn.cpp.


Function Documentation

int ACE_TMAIN int  argc,
ACE_TCHAR *  argv[]
 

create channels

create source/callbacks attached to channels

pub/sub msgs thru ports/callbacks

send msgs from src -> chan1 -> chan2 -> callback

Definition at line 79 of file local_chan_conn.cpp.

References Test_String_Msg::data, Test_String_Msg::len, channel::SUCCESS, and TEST_STRING_MSG.


Variable Documentation

std::string PING_MSG = "_PING_"
 

Definition at line 43 of file local_chan_conn.cpp.

std::string PONG_MSG = "_PONG_"
 

Definition at line 44 of file local_chan_conn.cpp.

std::string TEST_STRING_MSG = "_TEST_"
 

Definition at line 45 of file local_chan_conn.cpp.


Generated on Mon Feb 27 19:59:22 2006 for channel by  doxygen 1.4.6-NO