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?
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.