Codemesh Runtime v3 C++ API Reference  3.9.205
xmog_i_comm_strategy.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 1999-2020 by Codemesh, Inc.. ALL RIGHTS RESERVED.
3 //
4 
5 // -*- C++ -*-
6 
7 //==========================================================================
15 //==========================================================================
16 
17 #ifndef __XMOG_I_COMM_STRATEGY_H
18 #define __XMOG_I_COMM_STRATEGY_H
19 
20 #include "ace/Message_Block.h"
21 
37 {
38 public:
39  virtual ~xmog_i_comm_strategy () {};
40 
50  virtual int connect (const ACE_TCHAR *dest,
51  const ACE_Time_Value *timeout = 0) = 0;
52 
56  virtual void disconnect (void) = 0;
57 
68  virtual int send (ACE_Message_Block &b) = 0;
69 
80  virtual int recv (ACE_Message_Block &b) = 0;
81 
86  virtual ACE_HANDLE get_handle (void) = 0;
87 
88 protected:
89  xmog_i_comm_strategy () {}; // Only descendants can create these
90 };
91 
92 #endif /* __XMOG_I_COMM_STRATEGY_H */
xmog_i_comm_strategy::send
virtual int send(ACE_Message_Block &b)=0
xmog_i_comm_strategy::disconnect
virtual void disconnect(void)=0
xmog_i_comm_strategy::recv
virtual int recv(ACE_Message_Block &b)=0
xmog_i_comm_strategy
Defines the interface that xmog_jvm uses to communicate with a server.
Definition: xmog_i_comm_strategy.h:36
xmog_i_comm_strategy::get_handle
virtual ACE_HANDLE get_handle(void)=0
xmog_i_comm_strategy::connect
virtual int connect(const ACE_TCHAR *dest, const ACE_Time_Value *timeout=0)=0

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.