close Warning: Can't use blame annotator:
No changeset 1891 in the repository

source: trash/pingpong/PingPongMessage.cpp@ 6786

Last change on this file since 6786 was 6786, checked in by mies, 15 years ago

Changed Data to Message conversion constructor in Message to explicit
Fixed some general bugs in Data: operator<<
Fixed bug in DHTMessage: allow unspecified key/values
Added local DHT message delivery
Adapted sources to work with gcc 4.4.1

File size: 474 bytes
RevLine 
1#include "PingPongMessage.h"
2
3namespace ariba {
4namespace application {
5namespace pingpong {
6
7vsznDefault(PingPongMessage);
8
9PingPongMessage::PingPongMessage() : id(0) {
10}
11
12PingPongMessage::PingPongMessage(uint8_t _id) : id(_id) {
13}
14
15PingPongMessage::~PingPongMessage(){
16}
17
18string PingPongMessage::info(){
19 return "ping pong message id " + ariba::utility::Helper::ultos(id);
20}
21
22uint8_t PingPongMessage::getid(){
23 return id;
24}
25
26}}} // namespace ariba, appplication, pingpong
Note: See TracBrowser for help on using the repository browser.