What client-side situations need bind()?

后端 未结 7 1580
长情又很酷
长情又很酷 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条回答
  • 2021-01-01 16:41

    Bind can be used to attach names to a sockets. Thus, say you create a software that uses a particular TCP port, you need to bind it and then, you will know the TCP port it is using.

    0 讨论(0)
提交回复
热议问题