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:o 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:o AB B #pupsekaka 1064091112 +tn ABAAo AB B #modserv 1064091112 +tn ABAAo AB EB AB EA I'll hope you can help me. Thanks. |
All times are GMT -5. The time now is 05:55 PM. |