Ahmed Shabana wrote: > after I search in how to debug my code and try gdb I find that there > is an awesome tools "UNDER LINUX" called > ltrace and strace it is very good to detect run time actions of any program > > but After the program runs well firt time > it give error in bind() in the second time I ran the same program
If you bind() a socket to the same port within a very short amount of time, the OS will most likely not have released the resources yet. It can take up to 30 seconds to free up the port for reuse. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
