P-Grid v2.0a2 API Specification

p2p.basic.events
Interface P2PListener


public interface P2PListener

Defines callback interface to inform listeners of events on the network.


Method Summary
 void newMessage(Message message, Peer origin)
          Invoked when a new message needs to be delivered to the application.
 

Method Detail

newMessage

void newMessage(Message message,
                Peer origin)
Invoked when a new message needs to be delivered to the application.

Parameters:
message - the message received
origin - the peer from which the message was sent

P-Grid v2.0a2 API Specification

This is open source software distributed under the terms of the GNU General Public License, a copy of which is included in the file LICENSE. If not you can find the GPL at http://www.gnu.org/copyleft/gpl.txt