|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--projectinfosearch.AgentSender
An AgentSender can create and send out an agent and wait for its return.
| Constructor Summary | |
AgentSender()
creates an AgentSender |
|
| Method Summary | |
void |
queryResult(int g)
This method creates a ServerSocket which waits on the homePort. |
void |
sendAgent(java.net.InetAddress serverAddr,
int serverPort,
int homePort)
Opens a TCP connection to a specified AgentServer, creates an AgentObject and sends it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AgentSender()
| Method Detail |
public void sendAgent(java.net.InetAddress serverAddr,
int serverPort,
int homePort)
serverAddr - is the InetAddress address of the AgentServerserverPort - is the server port of the AgentServerhomePort - is the home port of the AgentClientpublic void queryResult(int g)
g - is the number of servers which were detected with the discovery client
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||