Make relavent changes for NioSocketAcceptor and NioSocketConnector
refactoring.