LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-21-2003, 10:16 AM   #1
commx
LQ Newbie
 
Registered: Sep 2003
Distribution: Arch
Posts: 16

Rep: Reputation: 0
Angry IRC-Socket


I have some problem using a socket connection with a irc server.
I am connected with my program to the remote server and i would receive some stuff which has been sent at the establishing of the connection with the remote server. Now, the first line i receive is that what i did.

CODE:

int main() {
char buffer[2048], red[513], *ptr, tmp;
printf("ModServ 0.823\n");
printf("-------------\n");
printf("Connecting... ");
do_connect(se_host,se_port);
printf("Done.\n");
while(1) {
i=read(s,&red,513);
parseline(red);
}
}


I GET AT CONNECT (SHELL):

ircserver@hamburg027:~/modserv/new> ./m
ModServ 0.823
-------------
Connecting... <[OUT]> PASS :conn
<[OUT]> SERVER modserv.gamerirc.net 1 1064156055 1064156055 J10 AC]]] :This is ModServ 0.823
<[OUT]> AC EB
<[OUT]> AC N M 1 1064156035 central modserv.gamerirc.net +owsgkr M AcTdFs ACAAA :ModServ 0.823 Central
<[OUT]> ACAAA J #commx
<[OUT]> AC M #commx +ov ACAAA ACAAA
<[OUT]> AC N Q 1 1064156035 cservice loves.commx +owsgkr Q AcTdFs ACAAB :Q which loves commx
<[OUT]> AC N S 1 1064156035 spamscan likes.commx +owsgkr S AcTdFs ACAAC :S which likes commx
<[OUT]> AC N O 1 1064156035 operserv fluffles.commx +owsgkr O AcTdFs ACAAD :O which fluffles commx
Done.
PASS :conn
SERVER irc.GamerIRC.net 1 1063815842 1064156055 J10 ABAP] +h :GamerIRC hub
AB N commx 1 1064137984 commx du-020a-109.access.de.clara.net +oiwkgrh commx commx@commx.org DV3Udt ABAAn :Chris Jurk
AB N cN\\KnubbL 1 1064145082 cn.knubbl p5084151F.dip.t-dialin.net +i BQhBUf ABAAo :cn.knubbl
AB B #commx 1064094498 +tn ABAAo,ABAAn
AB B #pupsekaka 1064091112 +tn ABAAo
AB B #modserv 1064091112 +tn ABAAo
AB EB
AB EA


I GOT AT SETTING A MODE (SHELL):

ABAAn M commx -i
irc.GamerIRC.net 1 1063815842 1064156055 J10 ABAP] +h :GamerIRC hub
AB N commx 1 1064137984 commx du-020a-109.access.de.clara.net +oiwkgrh commx commx@commx.org DV3Udt ABAAn :Chris Jurk
AB N cN\\KnubbL 1 1064145082 cn.knubbl p5084151F.dip.t-dialin.net +i BQhBUf ABAAo :cn.knubbl
AB B #commx 1064094498 +tn ABAAo,ABAAn
AB B #pupsekaka 1064091112 +tn ABAAo
AB B #modserv 1064091112 +tn ABAAo
AB EB
AB EA



I'll hope you can help me. Thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot read data at server socket, though client socket sends it jacques83 Linux - Networking 0 11-15-2005 01:58 PM
AMD socket A, socket 754 darkangel29 Linux - Hardware 1 10-11-2005 09:56 AM
Unable to connect to UNIX socket /tmp/.esd/socket error while using grip dr_zayus69 Linux - Software 4 08-23-2005 07:28 PM
How speak irc client and irc server program? mech Linux - Networking 1 03-31-2004 05:23 PM
connect: socket operation on non-socket bit7 Linux - Networking 0 02-18-2003 05:08 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration