mIRC Home    About    Download    Register    News    Help

Print Thread
#73992 06/03/04 06:26 AM
Joined: Jan 2004
Posts: 79
C
cmad Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Jan 2004
Posts: 79
Below is the link to the source of a test bot I made yesterday. It seems like the problem I'm having is that it won't capture the ping events with a result of it timing out... I was wondering if anyone could help me with it...

http://members.lycos.co.uk/cmadx/bot_test_1.cc

And I need some feedback on the "USER ..." command; such as what do I pass as params? Are the params I'm passing to it right?

Thanks in advance,
cmad

PS. I made this program to test if I can connect well to an IRC network; it's not the real libs and bot source... But it IS compilable and seems correct to me.


My ally is the compiler, and a powerful ally it is!
#73993 07/03/04 10:30 PM
Joined: Jan 2004
Posts: 79
C
cmad Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Jan 2004
Posts: 79
plz someone?


My ally is the compiler, and a powerful ally it is!
#73994 08/03/04 01:03 PM
Joined: Oct 2003
Posts: 101
Vogon poet
Offline
Vogon poet
Joined: Oct 2003
Posts: 101
I am not going to bother reading that source, but I can tell you the parameters needed to connect and maintain a connection.

usually upon initial connect, the client sends:

NICK nickname
USER username "localhost" "remotehost" :real name

Note the colon before the real name. This is required.
The server will then send a PING command such as this:

PING :98273649

Whenever you receive a PING command, you should reply PONG with the same parameter. This goes for the initial connection as well as any subsequent PINGs.

Client sends PONG :98273649

After you are connected, a PING parameter may just be the server name instead of a random number. The reply is no different. your PONG should be exactly like the PING.

#73995 08/03/04 07:01 PM
Joined: Jan 2004
Posts: 79
C
cmad Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Jan 2004
Posts: 79
i know the style wink

oh and I fixed the prob earlier today so I can move on to next versions :P


My ally is the compiler, and a powerful ally it is!

Link Copied to Clipboard