Any difference between socket connection and tcp connection?
问题 Are these 2 concepts refer to the same thing? Do they have difference? In my opinion, they are different, and socket connection is based on tcp connection. A socket contains an IP address and port and it could only connect to another socket, but an IP address and port in the same machine could be connected with many other IP addresses and ports with TCP connection. Is this right? 回答1: TCP/IP is a protocol stack for communication, a socket is an endpoint in a (bidirectional) communication. A