Hi - I am desperately trying to get this one working, so time to turn to the forums, and hopefully Aras or someone similar knows the answer.
I am putting the finihing touches on the SmartFoxServer API, and that uses TcpClient/Sockets for communicating with a backend server over TCP.
This works great until you hit reload in the browser.
After that it is impossible to use the sockets. Trying to connect gives this exception:
System.Net.Sockets.SocketException: No route to host
at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remote_end) [0x00000]
at System.Net.Sockets.TcpClient.Connect (System.Net.IPEndPoint remote_end_point) [0x00000]
at System.Net.Sockets.TcpClient.Connect (System.Net.IPAddress[] ipAddresses, Int32 port) [0x00000]
Notice that this worked 2 seconds before and that I am trying to connect to localhost and/or 127.0.0.1 as hostname.
I have been trying all sorts of disconnect and iDispose variations to see if it could be a matter of improper shutdown - but to no help.
My stummach starts to tell me that this could be a mono or Unity issue, but I really am guessing blindly at this point.
This is one of the very last issues I have, and I am hitting a brick wall. If anyone can give me a clue, then you will be my hero of the day
Thanks!
/Thomas