Added code for using tcp connection objects between endpoints.