In protocol design, why would you ever use 2 ports?

前端 未结 12 964
一个人的身影
一个人的身影 2021-01-17 07:43

When a TCP Server does a socket accept on a port, it gets a new socket to work with that Client.
The accepting socket remains valid for that port and can accept further

12条回答
  •  醉梦人生
    2021-01-17 08:08

    Because FTP allows for separate control and data. IIRC, as originally designed, you could have 3 hosts: Host A could ask host B to send data to host C.

提交回复
热议问题