Interface MessageInterface


public interface MessageInterface

Interface that must be implemented by any P2P application that makes use of the JXTA NetworkModule.
The application must also have a public MessageArrived method, to allow the NetworkModule to send received messages back up to it.


Method Summary
 void

MessageArrived(Message mess)
           

 

Method Detail

MessageArrived

public void MessageArrived(Message mess)
This method needs to be implemented within the P2P application that instantiates the JXTA NetworkModule.
It is called by the NetworkModule when it recieves a message. A JXTA Message object is passed as a parameter.