Actually i cant find out what does the method bind() exactly do ?
I read the documentation, and until yet whenever i wrote a client/server application, i simply did below steps :
for example in a client.
And i know if use the constructor : Socket(); (that is without the destination address specifications), i can use the method
connect(endPoint), but what does the bind() method do, or which situation it applies ?
I also read "The
Java Tutorials" in section "what is a network interface" and at the point :
encountered with the question "Waht does the
bind() method do here ?"
Thanks in advance