com.kenmccrary.jtella
Interface MessageReceiver

All Known Implementing Classes:
MessageReceiverAdapter

public interface MessageReceiver

A class implementing MessageReceiver is capable of receiving GNUTella network messages


Method Summary
 void receivePush(PushMessage pushMessage)
          Implement to receive a push request
 void receiveSearch(SearchMessage searchMessage)
          Implement to receive a query message from the network, this will be called for every query and subsequently should be implement efficiently
 void receiveSearchReply(SearchReplyMessage searchReplyMessage)
          Implement to receive a message reply
 

Method Detail

receiveSearchReply

public void receiveSearchReply(SearchReplyMessage searchReplyMessage)
Implement to receive a message reply
Parameters:
searchResult - search reply

receiveSearch

public void receiveSearch(SearchMessage searchMessage)
Implement to receive a query message from the network, this will be called for every query and subsequently should be implement efficiently
Parameters:
searchMessage - search message

receivePush

public void receivePush(PushMessage pushMessage)
Implement to receive a push request
Parameters:
pushMessage - request to push a file