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

前端 未结 12 1067
一个人的身影
一个人的身影 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:02

    I think they did this so that while a transfer was occuring you could continue to work with the server and start new transfers easily (if your client could support this).

    Note that passive mode solves nearly all firewall/NAT problems.

提交回复
热议问题