LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Tutorials making IRC Client with C? (https://www.linuxquestions.org/questions/programming-9/tutorials-making-irc-client-with-c-115997/)

alitrix 11-14-2003 12:06 PM

Tutorials making IRC Client with C?
 
Does somebody know a URL where they learn you how to make a IRC Client (robot in my case..) with C??

I really need to read a tutorial that explains me exactly how to make a irc client , with somekind of "database" stuff. I know how to connect and that kind of stuff, but I don't know how to save nicks and host and that kind of stuff.

Somekid of "Making IRC Clients with C for dummies" ;)

I hope somebody got a URL for me :S

nibbler 11-14-2003 01:20 PM

A friend of mine made IRC server, maybe he would be helpful. But first you have to have more specific questions, and you have to start working on it. freshmeat might be a good start, try to find a similar project and read the source.

zekko 11-14-2003 02:30 PM

I have never seen a tutorial for creating IRC bots in C. However, there are many open source IRC clients and bots that you learn from:

Xchat (IRC client)
Eggdrop (bot)
HAL (bot)

Hope this helps.

alitrix 11-14-2003 03:35 PM

Hm... :(
I wanted a tutorial that only talks about the subject I want + explenation.

Cause I know the clients you ppl called and I checked there sources, but I don't understand exactlly what they doing or somethings I can't find the functions where they placed where they are doing what I'm searching.

But thanks anyway, I will try to read the sources again.
Btw, I readed these clients/bots:
- Eggdrop
- Irssi
- Xchat
- RockBot (something that I'm searching, but I don't understand it 100%)
- A few irc-deamons
- Q and L (IRC Services on Qnet)

And answering on nibber:
I'm started already with a client, but having problems with those structures :(
I can't find any tutorial that talks about nested structures on the way I need it :(

Stack 11-14-2003 05:12 PM

:study: Long ago(ok ok 2 years ago) i coded a complete irc bot in C++ well in the end it was more of an automated irc client seeing as it had a GUI ;) It was for windows though :)

Ask your questions though and i will try to answer them... I might just open up my compiler and write a simple irc bot though since many people here seem to want to see an example...

alitrix 11-14-2003 05:18 PM

Hm, oke.. then I will ask again when I'm in trouble :)
Mara already helped me alot

(I found a lot information in the source of L (IRC Service), maybe that can help me)

Kurt M. Weber 11-14-2003 05:30 PM

To make an IRC client in C, all you really need to know is how the IRC protocol works (RFCs 2810-2813) and how to do socket programming...then it's simply a matter of parsing the data sent and giving appropriate responses.

alitrix 11-15-2003 02:59 AM

Kurt, as I sayed before, I don't have problems with that ;)
I programmed already more then 10 IRC Bots without any problem :)

But anyway, I found a good tutorial on internet about linked lists and they talk about something that I undestand PLUS they have graphics as well that explain it better then only text :D
For the users that want support for linked lists as well or nested structures, read this url:
http://www.wiu.edu/users/mflll/351/C...ListIntro.html
Or just check all the tut's on the website:
http://www.wiu.edu/users/mflll/351/


All times are GMT -5. The time now is 04:40 PM.