00001 /* -*- C++ -*- */ 00002 #ifndef MPS_Transport_Fastmsg_Link_H 00003 #define MPS_Transport_Fastmsg_Link_H 00004 00005 #include <mps/mps.h> 00006 #include <fastmsg/Scheduler.h> 00007 #include <fastmsg/Mailbox.h> 00008 00009 class FastmsgLink: public MPS::Connection { 00010 private: 00011 ref<Mailbox> me; 00012 ref<Mailbox> other; 00013 int corrId; 00014 00015 public: 00016 FastmsgLink(string const &serverName, MPS::Address const &a); 00017 00018 // Connection methods. 00019 virtual MPS::OutputStream *getOutputStream(); 00020 virtual MPS::InputStream *getInputStream(); 00021 virtual void releaseOutputStream(MPS::OutputStream *stream); 00022 virtual void releaseInputStream(MPS::InputStream *stream); 00023 }; 00024 00025 #endif