根据 RFC 793 ( TCP ): > To allow for many processes within a single Host to use TCP communication facilities simultaneously, the TCP provides a set of addresses or ports within each host. Concatenated with the network and host addresses from the internet communication layer, this forms a socket.
Socket addresses are represented as follows: A single string is used for the AF_UNIX address family. A pair (host, port) is used for the AF_INET address family, where host is a string representing either a hostname in Internet domain notation like 'daring.cwi.nl' or an IPv4 address like '100.50.200.5', and port is an integer.
sobigfish
2016-10-11 14:17:38 +08:00
URI 和 socket 都是特定使用的场景的叫法,叫法也只有按场景来吧
bigpigeon
2016-10-11 14:30:03 +08:00
tcp/ip
qfdk
2016-10-11 14:49:29 +08:00
代理
zungmou
2016-10-11 14:57:46 +08:00
@shiji Thank you very much, 我就问一句,遇到类似的情况,你在代码里是如何命名的?