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. |
newMessage
void newMessage(Message message,
Peer origin)
- Invoked when a new message needs to be delivered to the application.
- Parameters:
message - the message receivedorigin - the peer from which the message was sent
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