What client-side situations need bind()?

后端 未结 7 1720
长情又很酷
长情又很酷 2021-01-01 16:21

I\'m learning C socket programming. When would you use bind() on the client-side? What types of program will need it and why? Where can I find an example?

7条回答
  •  猫巷女王i
    2021-01-01 16:22

    An example would be the data connection of an active FTP connection. In this case, the server connects from its port 20 to the IP and port specified by a PORT or EPRT command.

提交回复
热议问题