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

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

    FTP has a very long history, being one of the first ARPANET protocols back in the early seventies (for instance, see RFC114 from 1971). Design decisions which may seem odd now made more sense then. Connections were much slower, and performing the connection control "out of band" probably seemed a good move with the available network technology.

    The current RFC959 includes a good section on history, linking to earlier RFCs, if you fancy doing a little archaeology...

提交回复
热议问题