mIRC Home    About    Download    Register    News    Help

Print Thread
10060 on own irc client #58994 03/11/03 09:55 PM
Joined: Nov 2003
Posts: 1
L
Lee_m Offline OP
Mostly harmless
OP Offline
Mostly harmless
L
Joined: Nov 2003
Posts: 1
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

Re: 10060 on own irc client #58995 22/11/03 04:31 AM
Joined: Jun 2003
Posts: 23
M
Mouse_103 Offline
Ameglian cow
Offline
Ameglian cow
M
Joined: Jun 2003
Posts: 23
Im glad that you wrote your own client smile

someday, I would like to check out your client smile
Im sorry, I am that good coder yet.
I weould like to make my own client too.

hope someone who is better will reply here.







Re: 10060 on own irc client #58996 05/12/03 04:25 AM
Joined: Nov 2003
Posts: 227
H
Hitchhiker Offline
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
Most servers that i know of want your ident not from the USER part of the register process, but from another port,
if you listen on port 113 for ident requests, and send the right data to that socket you should get connected before the connection times out. In mirc you see something like this.

* Identd request from xx.xx.xx.xx
* Identd replied: 1033, 7000 : USERID : UNIX : someident

so listen on port 113 while connecting, accept the socket and write to it something like: 1033, 7000 : USERID : UNIX : someident , append carrage return and line feed, then you should be on your way.

Hope this helps.

Re: 10060 on own irc client #58997 17/12/03 10:32 PM
Joined: Dec 2003
Posts: 9
T
Terrywin Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
T
Joined: Dec 2003
Posts: 9
Also, you may need to respond to a ping request from the server before logging on.