Author |
Message |
Mackie
|
Posted: Tue May 20, 2008 7:08 pm Post subject: IRC in Turing |
|
|
As a curiosity I tried connecting to an IRC server through Turing, now it wants an "ident" of sorts. To be honest I don't know what that is or what I'm supposed to do... What do I do now?
Turing: | View.Set ("text")
var ip : string := Net.HostAddressFromName ("irc.afternet.org")
var line : string
var ircStream : int := Net.OpenConnection (ip, 6667)
if ircStream <= 0 then
put "Connection Error"
return
end if
loop
get : ircStream, line : *
put line
end loop
|
Output:
code: | NOTICE AUTH :*** Looking up your hostname
NOTICE AUTH :*** Checking your IP against DNS ban lists
NOTICE AUTH :*** Checking Ident
NOTICE AUTH :*** Found your hostname
NOTICE AUTH :*** DNS ban list check passed
NOTICE AUTH :*** No ident response
|
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
rizzix
|
Posted: Tue May 20, 2008 7:13 pm Post subject: RE:IRC in Turing |
|
|
Ah there are some very qualified individuals who can answer this: Cervantes and Hikaru. Wherever the hell they are... |
|
|
|
|
|
Saad
|
Posted: Tue May 20, 2008 7:15 pm Post subject: Re: IRC in Turing |
|
|
Learn about the IRC Protocol first (A good link is here). Its much better you understand how IRC works rather then asking what comes next |
|
|
|
|
|
Tony
|
Posted: Tue May 20, 2008 7:15 pm Post subject: RE:IRC in Turing |
|
|
Both are currently on UW campus. If you feel like tracking them down in person... I saw them both there last week. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
TheGuardian001
|
Posted: Tue May 20, 2008 7:41 pm Post subject: Re: IRC in Turing |
|
|
as far as i know, ident is used by irc servers to check if somebody is who they say they are. its generally in the form of user @ connection . host
eg: bob @ CPE-29 . myhost . net
if keeps track of this information, which is used for things like bans.
as for how you could get turing to find and send that info, Ive got no idea. hope that helped a bit. |
|
|
|
|
|
Nick
|
Posted: Tue May 20, 2008 8:02 pm Post subject: RE:IRC in Turing |
|
|
code: |
* Looking up us.afternet.org
* Connecting to north-america.afternet.org (72.36.252.163) port 6667...
* Connected. Now logging in...
* *** Looking up your hostname
* *** Checking your IP against DNS ban lists
* *** Checking Ident
* *** Found your hostname
* *** DNS ban list check passed
* *** No ident response
* Welcome to the AfterNET IRC Network, Nick |
straight from x-chat |
|
|
|
|
|
rdrake
|
Posted: Tue May 20, 2008 8:26 pm Post subject: RE:IRC in Turing |
|
|
Doesn't Turing have some sort of Net module? Use that to send and receive the plain text commands the IRC clients expect.
A few of us wrote Rubidium a while back. It's an IRC client written in Ruby. The source code is there somewhere, you can look at it to see how the protocol is implemented. |
|
|
|
|
|
Mackie
|
Posted: Wed May 21, 2008 12:04 am Post subject: Re: IRC in Turing |
|
|
Thanks Saad and rdrake, I'm looking into RFC 1459 (Internet Relay Chat Protocol) and RFC 1413 (Identification Protocol). I'm also looking through the Rubidium source code, hopefully I can patch something together soon enough. I good intro to Networking, I'm learning a lot actually.
<request> ::= <port-pair> <EOL>
<port-pair> ::= <integer> "," <integer>
<EOL> ::= "015 012" ; CR-LF End of Line Indicator
According to those, to request an Ident, I need to get a port pair. As in:
<port-on-server> , <port-on-client>
I have the server port, which would be 6667. What would I use as the Client Port, I haven't been assigned one yet? Do I need to set up a listen server. I haven't found the solution in Rubidium yet, but I'll keep looking! |
|
|
|
|
|
Sponsor Sponsor
|
|
|
|