sender_i.h
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 67 行
H
67 行
//
// Sender_i.h,v 1.2 2003/07/21 23:51:40 dhinton Exp
//
#ifndef MT_BIDIR_RECEIVER_H
#define MT_BIDIR_RECEIVER_H
#include /**/ "ace/pre.h"
#include "SenderS.h"
#if defined (_MSC_VER)
# if (_MSC_VER >= 1200)
# pragma warning(push)
# endif /* _MSC_VER >= 1200 */
# pragma warning (disable:4250)
#endif /* _MSC_VER */
class ACE_Manual_Event;
/**
* Simply print count how many bytes were received.
*/
class Sender_i
: public virtual POA_Sender
, public virtual PortableServer::RefCountServantBase
{
public:
/// Constructor
Sender_i (int no_clients,
ACE_Manual_Event &event);
// = The skeleton methods
virtual CORBA::Long receiver_object (Receiver *recv
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
Sender::Table_Full));
/// Public method defined locally
void send_message (ACE_ENV_SINGLE_ARG_DECL);
private:
/// Synchronizing acces to this class
TAO_SYNCH_MUTEX mutex_;
/// An event for waking other threads
ACE_Manual_Event &event_;
/// An array of receiver pointers
Receiver **receivers_;
/// Size of the <this->receivers_> array
int no_clients_;
/// Receiver index
int last_index_;
/// Payload that is being sent
Receiver::Payload payload_;
};
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
# pragma warning(pop)
#endif /* _MSC_VER */
#include /**/ "ace/post.h"
#endif /* MUXING_RECEIVER_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?