![]() |
|
|||||||
| Register | FAQ | The Twelve Commandments | Members List | Calendar | Arcade | Find the Best VPN | Today's Posts | Search |
| Development Open Discussion Anything else about the Phex development |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
What Java Class deals with Received Queries in Phex 3.4 Source Code? I am looking through the package phex.query but cannot pick out the right class (if I am even in the right package). Thanks, thucydides |
|
#2
|
|||
|
|||
|
phex.msghandling.MessageDispatcher.handleQuery()
You can also hook your own class into it: Code:
public class MyClass implements MessageSubscriber<QueryMsg> {
public void onMessage(QueryMsg query, Host sourceHost) {
...
}
}
MyClass c = new MyClass();
Servent.getInstance().getMessageService().addMessageSubscriber(
QueryMsg.class, c);
|
|
#3
|
|||
|
|||
|
Awesome, thanks for the quick reply!
|
![]() |
|
|