/**
* Accept a new connection.
*/
private void handleAccept() throws IOException {
TNonblockingTransport client = null;
try {
client = (TNonblockingTransport)serverTransport.accept();
} catch (TTransportException tte) {
LOGGER.warn("Exception trying to accept!", tte);
return;
}
SelectionKey clientKey = client.registerSelector(selector, SelectionKey.OP_READ);
// add this key to the map
FrameBuffer frameBuffer = new FrameBuffer(client, clientKey);
clientKey.attach(frameBuffer);
}