Hi,

I wrote my own IRC client, and it works good. However, from time to time, I have a problem connecting to certain servers. Usually the connection is timed out (error 10060). However, on mIRC it always works, to the same servers on the same time. I'm usually connecting to the "random servers" (i.e. irc.dal.net)

What is the secret? any special connections options? Any special code?
Here's my code - very simple, just the winsockets:

m_sock = socket(AF_INET, SOCK_STREAM, 0);

and then

connect(m_sock, (const sockaddr*)&addr, sizeof(sockaddr))
where addr is the address of the server

Thanks a lot for any lead! I appreciate it a lot... many kids will have fun with it.

Thanks,
Lior