I need some code for winsock, I couldnt find it anywhere.
If the connection is dropped, it connects to a different server. But I have 4 servers I want to switch around.

So lets say one is

z.z.z.z and it fails it goes to
y.y.y.y and it fails it goes to
x.x.x.x and it fails it goes to
w.w.w.w and if it fails to goes back to z.z.z.z and so on and so forth.

Help?