What Does Socket Binding Mean?
In, the Socket. Bind(Address) Entry Says: Bind the Socket to Address. the Socket Must Not Already Be Bound. (The Format of Address Depends on the Address...
In , the socket.bind(address) entry says:
Bind the socket to address. The socket must not already be bound. (The format of address depends on the address family — see above.)
That is all it says, what does "Bind the socket to address" mean?
2 Answers
It's basically just assigning an address to it so you can accept incoming connections on that address. Have a look at: man bind
It just means that after also calling listen() and when using the accept() method, it will be listening for requests to connect to that particular address.