|
MASA-Core
|
Definition at line 44 of file Command.hpp.
#include <Command.hpp>
Public Member Functions | |
| Command () | |
| virtual | ~Command () |
| virtual int | getId ()=0 |
| virtual void | send (Peer *socket)=0 |
| virtual void | receive (Peer *socket)=0 |
| int | getSerial () const |
| void | setSerial (int serial) |
Private Attributes | |
| int | serial |
| Command::Command | ( | ) |
Definition at line 24 of file Command.cpp.
| Command::~Command | ( | ) | [virtual] |
Definition at line 30 of file Command.cpp.
| virtual int Command::getId | ( | ) | [pure virtual] |
Implemented in CmdDiscover, CmdUndiscover, CmdTestRing, CmdPeerList, CmdPeerResponse, CmdStatusResponse, CmdCreateRing, CmdPeerRequest, CmdJoin, CmdNotifyScore, and CmdStatusRequest.
| int Command::getSerial | ( | ) | const |
Definition at line 35 of file Command.cpp.
| virtual void Command::receive | ( | Peer * | socket | ) | [pure virtual] |
Implemented in CmdTestRing, CmdPeerList, CmdStatusResponse, CmdCreateRing, CmdPeerRequest, CmdJoin, CmdNotifyScore, and CmdStatusRequest.
| virtual void Command::send | ( | Peer * | socket | ) | [pure virtual] |
Implemented in CmdTestRing, CmdPeerList, CmdStatusResponse, CmdCreateRing, CmdPeerRequest, CmdJoin, CmdNotifyScore, and CmdStatusRequest.
| void Command::setSerial | ( | int | serial | ) |
Definition at line 39 of file Command.cpp.
int Command::serial [private] |
Definition at line 58 of file Command.hpp.
1.7.6.1