Changeset 7468 for sample


Ignore:
Timestamp:
Jan 25, 2010, 10:50:57 AM (15 years ago)
Author:
Christoph Mayer
Message:

-timer delete fix (noch auskommentiert), -interface cleanup

Location:
sample
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sample/pingpong/PingPong.cpp

    r6959 r7468  
    210210}
    211211
    212 bool PingPong::onLinkRequest(const NodeID& remote, const DataMessage& msg) {
     212bool PingPong::onLinkRequest(const NodeID& remote) {
    213213        logging_info( "node " << remote.toString() << " wants to build up a link with us ... allowing" );
    214214        return true;
  • sample/pingpong/PingPong.h

    r5316 r7468  
    3838protected:
    3939        // communication listener interface
    40         virtual bool onLinkRequest(const NodeID& remote, const DataMessage& msg =
    41                         DataMessage::UNSPECIFIED);
     40        virtual bool onLinkRequest(const NodeID& remote);
    4241        virtual void onMessage(const DataMessage& msg, const NodeID& remote,
    4342                const LinkID& lnk = LinkID::UNSPECIFIED);
  • sample/testdht/DHTTest.cpp

    r6796 r7468  
    164164
    165165
    166 bool DHTTest::onLinkRequest(const NodeID& remote, const DataMessage& msg) {
     166bool DHTTest::onLinkRequest(const NodeID& remote) {
    167167        logging_info( "node " << remote.toString() << " wants to build up a link with us ... allowing" );
    168168        return true;
  • sample/testdht/DHTTest.h

    r6760 r7468  
    3434protected:
    3535        // communication listener interface
    36         virtual bool onLinkRequest(const NodeID& remote, const DataMessage& msg =
    37                         DataMessage::UNSPECIFIED);
     36        virtual bool onLinkRequest(const NodeID& remote);
    3837        virtual void onLinkUp(const LinkID& lnk, const NodeID& remote);
    3938        virtual void onLinkDown(const LinkID& lnk, const NodeID& remote);
Note: See TracChangeset for help on using the changeset viewer.