I have the following problem: I'm using CFSockets and the first time the
program executes it works fine. The second time the program fails on the
function CFSocketSetAddress(). If I use a different port number the second
time then it doesn't fail. So it looks like the computer thinks the port is
still in use.
I'm actually creating a TCP Callback socket with CFSocketCreate. If I don't
receive any data on that socket the program will run properly the 2nd time
and the 3rd etc. So only when I receive some data in the TCP Callback
function is the ...