[xSocket-develop] A question about xsocket IDataHandler
Status: Inactive
Brought to you by:
grro
|
From: java f. <lan...@gm...> - 2009-04-15 01:51:54
|
Hi,
class B implements IDataHandler {
public boolean onDisconnect(INonBlockingConnection nbc) throws
IOException {
//....Some operation
return true;
}
}
class A implements IDataHandler {
public boolean onDisconnect(INonBlockingConnection nbc) throws
IOException {
//...
connection.setHandler(new B());
return true;
}
}
At first ,
IServer srv = new Server(9999, new A());
at IDataHandler A ,it let IDataHandler B to continue to process .
I want to know when connection closed , does it influence the new
incoming connection? which IDataHandler will be used to handle the new
connection? A or B?
Thanks in advance.
Best Regards
lance
|