Move stop() call from closeTty() to the only calling site needing it
[remote/remote-mci.git] / mcs / MoteControlInfrastructure.h
blob5821183591f5ca268a3157ed3296864e33402246
1 #ifndef _MOTECONTROLINFRASTRUCTURE_H_
2 #define _MOTECONTROLINFRASTRUCTURE_H_
4 #include "MsgPayload.h"
5 #include "MCIAddress.h"
7 namespace remote { namespace mcs {
9 using namespace protocols;
11 /** An object of this class manage mote infrastructure abstractions.
12 Any number of MoteControlInfrastructure may be created and each may manage
13 any number of motes;
14 The MoteControlInfrastructure is responsible for registering hotplugged motes
15 and for routing messages through the underlying network to the motes.
16 **/
17 class MoteControlInfrastructure
19 public:
20 /** Destructor **/
21 virtual ~MoteControlInfrastructure() {};
22 /** Sends a request to the mote with the specied address
23 * \param address Control infrastructure address of the mote.
24 * \param request Request to send to the mote.
25 **/
26 virtual void request( MCIAddress& address, MsgPayload& request ) = 0;
31 #endif