Back to index

im-sdk  12.3.91
IIIMProtocol.hh
Go to the documentation of this file.
00001 #ifndef IIIMPROTOCOL_HH_
00002 #define IIIMPROTOCOL_HH_
00003 #include <map>
00004 #include "basictype.hh"
00005 #include "IMProtocol.hh"
00006 #include "IMUtil.hh"
00007 
00008 class IIIMP_IMState;
00009 class IIIMPTrans;
00010 
00011 class IIIMProtocol : public IMProtocol
00012 {
00013     IMSocketListen *pimsl;
00014 
00015     typedef map<IIIMPTrans*, IIIMP_IMState*> IIIMPClientMap;
00016 
00017     bool restart(
00018        IMSocketAddressVec &addrvec
00019     );
00020 
00021   public:
00022     virtual bool receive_and_dispatch(
00023        IMState *pims,
00024        int flags = SYNC
00025     );
00026     virtual IMState* accept(
00027        int flags = SYNC
00028     );
00029 
00030     bool set_server_listen_address(
00031        IMSocketAddressVec &addrvec
00032     );
00033     IIIMProtocol(
00034        IMAccept *pima
00035     );
00036     virtual ~IIIMProtocol();
00037 };
00038 
00039 #endif /* not IIIMPROTOCOL_HH_ */
00040 
00041 /* Local Variables: */
00042 /* c-file-style: "iiim-project" */
00043 /* End: */