TCP API Improvements to better support tcp plugins and remote clients.