1. euLibnet and IRC
- Posted by Peter Taker <scouserpeter at hotmail.com> May 26, 2001
- 430 views
Hey all, Is there'e anywhere I can get euLibnet by Ray Smith. I've checked Ray's site and it seems to be down at the moment. If your reading this Ray could you possibly email me the file if you have time pls. :) I want to make some code which implements a basic IRC client. Did anyone make any progress towards this, there's a few mentions in the mailing list archives but not much and I can't find any IRC specific chat programs in the archive. Would it be best to use euLibnet to accomplish this or tcp4u. I was thinking the former. If anyone could offer some suggestions about how I'd start or points to consider I'd appreicate that. Thanks Peter
2. Re: euLibnet and IRC
- Posted by Ray Smith <smithr at ix.net.au> May 26, 2001
- 430 views
Hi Peter, I "attempted" to help Ryan Breen get an IRC client going using euLibnet (and also I tried euTcp4u) and had no success. I "suspected" the problem lies in the fact you need an "Ident" server running on your own PC. This allows IRC servers to verify who you say you are. I tried using external Ident servers but had no success. Possibly the ident server needs to be built into the client in which case both euLibnet and euTcp4u won't work because they both use blocked sockets and Euphoria doesn't allow threads. Possibly I just had poor code and it is possibly both wrappers could work as well!!! I "think" the only way possibly would be to use the winsock wrappers which can be found through the archive. It will be more difficult to implement as you need to use pure winsock instead of using higher level libraries. About my home page ... all the files have been removed for some reason and I can't get an answer from Yahoo as to why. A FAQ page says it "possibly" because of a breach of the terms of conditons but I can't get it confirmed. (and don't know what I would have breached!) If you (or anyone) want any of my software please email me privately and I'll send it to you (smithr at ix.net.au). Ray Smith From: Peter Taker <scouserpeter at hotmail.com> > Is there'e anywhere I can get euLibnet by Ray Smith. I've checked Ray's > site and it seems to be down at the moment. If your reading this Ray > could you possibly email me the file if you have time pls. :) > > I want to make some code which implements a basic IRC client. Did anyone > make any progress towards this, there's a few mentions in the mailing > list archives but not much and I can't find any IRC specific chat > programs in the archive. > > Would it be best to use euLibnet to accomplish this or tcp4u. I was > thinking the former. > > If anyone could offer some suggestions about how I'd start or points to > consider I'd appreicate that.
3. Re:Re: euLibnet and IRC
- Posted by francis.dowling at runbox.com May 26, 2001
- 468 views
....<cut>.... > both euLibnet and euTcp4u won't work because they both use blocked > sockets and Euphoria doesn't allow threads. Possibly I just had poor code > and it is possibly both wrappers could work as well!!! >=20 > I "think" the only way possibly would be to use the winsock wrappers which > can be found through the archive. It will be more difficult to implement= as > you need to use pure winsock instead of using higher level libraries. .... Does Euphoria really not allow threads? I never realised, just presumed tha= t it did. I've never actually tried calling the CreateThreadEx or whatever-= it-happens-to-be-called function in whatever.dll.... Anyway, are you *sure* about this identd server? I've used IRC for 5 years,= and on undernet and DALnet which are the only ones I frequent now I can ch= oose (still) to connect without the ident server; which prepends a squiggle= y ~ to your ident. I've always understood this to mean no ident server was = accessed when connecting. Come to think of it too, last time I connected to= IRC was through telnet. I don't feel confident programming sockets or thei= r implementation but I presume TELNET does not have an ident server - and I= connected fine. After you connect and read the verification notices are yo= u remembering to send to the socket the correct USER, NICK and PONG command= s with their correct parameters? A wee while back I managed to connect to IRC using some socket library in e= uphoria. It would just echo to the screen and send to the server exactly wh= at you typed. Just like telnet, except I couldn't work out how to detect an= end of line as the sockets implemented in this library were of the non-asy= nchronous variety. From memory, I presumed you used the recv() function wit= h a non-asynchronous (or whatever they're called) socket when you knew exac= tly how many bytes to read, which in a variable environment like IRC I coul= dn't get working effecetively. Anyway, I'm surprised. I'm *sure* I've managed to connect to IRC before wi= th Euphoria. Cheers, get back to me on this I'm interested - I just might have it all wr= ong anyway
4. Re: Re:Re: euLibnet and IRC
- Posted by Ray Smith <smithr at ix.net.au> May 27, 2001
- 451 views
Hi, Sadly it's true, Euphoria doesn't handle threading. I have no idea if the Ident server is the problem or not. I can't even make a connection, it just returns a connection error I think ... not to helpful. If Ryan Breen is OK with it I'll pass on his test program (with my mods) he did using euTcp4u (I think) that attempted to connect to an IRC server - to see if anyone can put some light onto the subject. Ray Smith > Does Euphoria really not allow threads? I never realised, just presumed that it did. I've never actually tried calling the CreateThreadEx or whatever-it-happens-to-be-called function in whatever.dll.... > Anyway, are you *sure* about this identd server? I've used IRC for 5 years, and on undernet and DALnet which are the only ones I frequent now I can choose (still) to connect without the ident server; which prepends a squiggley ~ to your ident. I've always understood this to mean no ident server was accessed when connecting. Come to think of it too, last time I connected to IRC was through telnet. I don't feel confident programming sockets or their implementation but I presume TELNET does not have an ident server - and I connected fine. After you connect and read the verification notices are you remembering to send to the socket the correct USER, NICK and PONG commands with their correct parameters? > > A wee while back I managed to connect to IRC using some socket library in euphoria. It would just echo to the screen and send to the server exactly what you typed. Just like telnet, except I couldn't work out how to detect an end of line as the sockets implemented in this library were of the non-asynchronous variety. From memory, I presumed you used the recv() function with a non-asynchronous (or whatever they're called) socket when you knew exactly how many bytes to read, which in a variable environment like IRC I couldn't get working effecetively. > > Anyway, I'm surprised. I'm *sure* I've managed to connect to IRC before with Euphoria. > > Cheers, get back to me on this I'm interested - I just might have it all wrong anyway
5. Re: euLibnet and IRC
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> May 27, 2001
- 445 views
> Hi Peter, > > I "attempted" to help Ryan Breen get an IRC client going using euLibnet > (and also I tried euTcp4u) and had no success. > > I "suspected" the problem lies in the fact you need an "Ident" server > running on your own PC. This allows IRC servers to verify who you > say you are. > > I tried using external Ident servers but had no success. > Possibly the ident server needs to be built into the client in which case > both euLibnet and euTcp4u won't work because they both use blocked > sockets and Euphoria doesn't allow threads. Possibly I just had poor code > and it is possibly both wrappers could work as well!!! > > I "think" the only way possibly would be to use the winsock wrappers which > can be found through the archive. It will be more difficult to implement as > you need to use pure winsock instead of using higher level libraries. > > About my home page ... all the files have been removed for some reason and > I can't get an answer from Yahoo as to why. > A FAQ page says it "possibly" because of a breach of the terms of conditons > but I can't get it confirmed. (and don't know what I would have breached!) > > If you (or anyone) want any of my software please email me privately and > I'll > send it to you (smithr at ix.net.au). > > Ray Smith Hi! I had a little look around and found a couple of usefull IRC related documents, there's the specs at: http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc1459.html And a page about using Telnet to access IRC at: http://www.daemonnews.org/199907/irchack.html I tried using telnet and it works fine, you need to also send the: NICK username command after the USER command though (at least on irc.sorcery.net where I tried it) Anyway, if it can be accessed by telnet then it shouldn't be to hard to access by euphoria :) Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.rat-software.com/ Please leave quoted text in place when replying
6. Re: euLibnet and IRC
- Posted by Ray Smith <smithr at ix.net.au> May 27, 2001
- 437 views
Hi Thomas, > I had a little look around and found a couple of usefull IRC related > documents, there's the specs at: > http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc1459.html > And a page about using Telnet to access IRC at: > http://www.daemonnews.org/199907/irchack.html > I tried using telnet and it works fine, you need to also send the: > NICK username > command after the USER command though (at least on irc.sorcery.net > where I tried it) > > Anyway, if it can be accessed by telnet then it shouldn't be to hard > to access by euphoria :) I have the official RFC (and read most of it!!). The telnet guide could prove to be useful .. thanks. I have connected before using Telnet and have had a little success doing that. I "thought" that it would make it simple to use a Tcp library if Telnet worked but ... I can't explain why I can open a connection with telnet and not with euLibnet or euTcp4u. I gave trying to connect to an IRC server a few weeks ago ... and because of a heavy work load at work and changing interests in my life don't fiddle with computers at home much anymore. This might change at some time in the future though. Ray Smith
7. Re: euLibnet and IRC
- Posted by Kat <gertie at PELL.NET> May 29, 2001
- 457 views
On 27 May 2001, at 9:59, Thomas Parslow (PatRat) wrote: > > > Hi Peter, > > > > I "attempted" to help Ryan Breen get an IRC client going using euLibnet > > (and also I tried euTcp4u) and had no success. > > > > I "suspected" the problem lies in the fact you need an "Ident" server > > running on your own PC. This allows IRC servers to verify who you > > say you are. > > > > I tried using external Ident servers but had no success. > > Possibly the ident server needs to be built into the client in which case > > both > > euLibnet and euTcp4u won't work because they both use blocked sockets and > > Euphoria doesn't allow threads. Possibly I just had poor code and it is > > possibly both wrappers could work as well!!! > > > > I "think" the only way possibly would be to use the winsock wrappers which > > can > > be found through the archive. It will be more difficult to implement as you > > need to use pure winsock instead of using higher level libraries. > > > > About my home page ... all the files have been removed for some reason and I > > can't get an answer from Yahoo as to why. A FAQ page says it "possibly" > > because of a breach of the terms of conditons but I can't get it confirmed. > > (and don't know what I would have breached!) > > > > If you (or anyone) want any of my software please email me privately and > > I'll > > send it to you (smithr at ix.net.au). > > > > Ray Smith > > Hi! > I had a little look around and found a couple of usefull IRC related > documents, there's the specs at: > http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc1459.html > And a page about using Telnet to access IRC at: > http://www.daemonnews.org/199907/irchack.html > I tried using telnet and it works fine, you need to also send the: > NICK username > command after the USER command though (at least on irc.sorcery.net > where I tried it) > > Anyway, if it can be accessed by telnet then it shouldn't be to hard > to access by euphoria :) > > Thomas Parslow (PatRat) ICQ #:26359483 I got to Sorcerynet with Eu and tcp4u, did some mode changes, set up a notify for chanserv and nickserv, joined a channel, said something, and quit.: . 07:45:51am 05/29/01 [TiggrTest] joined . [TiggrTest]!Gertie at 6ca5eca3.14055a5c.208.5.imsk . 07:45:51am 05/29/01 ChanServ op'd [TiggrTest] in #Tiggrbot . .Population: @[Tiggr] [TiggrTest] . [07:45] <[TiggrTest]> testing! . 07:46:15am 05/29/01 Tuesday [TiggrTest] quit: Quit: Tiggrtest done testing . . [TiggrTest]!Gertie at 6ca5eca3.14055a5c.208.5.imsk . . [TiggrTest] was at 208.5.29.118 . I found two bugs in tcp4u: line 505 in function tcp4u_connect() connect_socket should be an atom, it goes outside the range of integers lines: 495: port_addr = allocate(2) 496: poke(port_addr, port) make them into: port_addr = allocate(4) poke4(port_addr,port) That should be enough to get started. I don't have a gui yet, but that's not really on the list of things to do. Of course, until last nite, i wasn't going to write an irc client either....... Kat