Answer the question
In order to leave comments, you need to log in
Why the necessary bind function?
I read about sockets.
I see the bind function.
The description says that "the bind function is needed to bind a local address to a socket".
Ahem. What for?
There is a computer, the computer has an address. Why can't the stack somehow itself bind the address it knows to the socket?
Or is it necessary for computers that have two network cards / two addresses?
Answer the question
In order to leave comments, you need to log in
The description says that "the bind function is needed to bind a local address to a socket".
Ahem. What for?
There is a computer, the computer has an address. Why can't the stack somehow itself bind the address it knows to the socket?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question