Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Usable IRC Library??

Author
Message
Shuck
22
Years of Service
User Offline
Joined: 14th Oct 2003
Location:
Posted: 13th Nov 2003 09:16
Does such a thing exist? I've been looking for this in DLL form for quite some time now, but I see nothing anywhere on the net.

Seems to be plenty of tool specific libraries...can anyone point me to a usable (and complete) IRC function library?

Thanks,
Shuck
Ralen
23
Years of Service
User Offline
Joined: 22nd Jul 2003
Location:
Posted: 14th Nov 2003 07:42
There isn't a specific DLL that you use to connect to an IRC server.
It is all plain text.

All a IRC client does is send and receive text. What you have to do is make your client parse the information that you receive.

Its actually pretty easy.

http://rfc.sunsite.dk/rfc/rfc1459.html

That is the official document explaining the IRC protocol.

What you are looking for is a DLL that supports TCP/IP communication. Which is Winsock.

Winsock is part of the windows API. WHich actually I found out tonight ath you can use in DBPro.

Here is a good referance for the Windows API

http://www.partware.com/ebooks/api/ref/funcc.html


Like I said its all plain text. Just go to chapter 4 in the RFC document. That details the commands that you send to the IRC server.
When you do that you will receive plain text back from the server. You just parse the information returned depending on whatever it is.

I don't have any sample code, but the hardest part of this won't be the IRC part, it will probably be figuring out how to use the Winsock DLL in your program.

I will probably be working on this for the next few days myself. If I come up with anything decent as far as winsock goes I'll give you a snippet of how you could use it to connect to an IRC server.
newbi 2 basic
23
Years of Service
User Offline
Joined: 20th Apr 2003
Location: Inverness, Scotland
Posted: 14th Nov 2003 17:21
or you could not use DBpro to program an IRC client... That would but abit wierd

System Requirements: DX7 or is it 9 now?


Good project none the less just i can see it being a pain in the behind for both you and the user....
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 14th Nov 2003 18:14
side note: if your using .net you could use winsock wrapped in interop but you would really want to use TCPClient and TCPListener classes. (There are also UDP versions of these) Be cautious with the listener clases as they are thread-blocking operations, you'll need delegates and multithreading to achieve non-locking gui.

my 2c


-RUST-
Shuck
22
Years of Service
User Offline
Joined: 14th Oct 2003
Location:
Posted: 15th Nov 2003 13:20
Cattlerustler...

That .NET stuff might be worth checking out while I'm looking into the IRC RFC spec.

Is there any non-MSDN documentation available somewhere on the net for these classes?

Login to post a reply

Server time is: 2026-07-26 14:31:06
Your offset time is: 2026-07-26 14:31:06