Added example for TCP endpoints.