[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: 2 Questions for the server guru's <G>
Robert Martin-Legène wrote:
> On Mon, 26 Oct 1998, Matthew Sullivan wrote:
>
> > PS I thought I got the syntax right, but it's the token I obviously am not
> > getting right, hence the errors on the uplink. 8-)
>
> Well, all the info was there, you just need to combine it:
>
> SERVER irc.dknet.dk 1 :Copenhagen, Denmark
> :irc.dknet.dk SERVER sunsite.auc.dk 2 47 :SunSITE Denmark, Aalborg University
> :sunsite.auc.dk SERVER irc2.sci.kun.nl 3 2 :University of Nijmegen, The Netherlands
> :irc2.sci.kun.nl SERVER irc.sci.kun.nl 4 3 :University of Nijmegen, The Netherlands
> :irc2.sci.kun.nl SERVER *.be 4 4 :[ircd.belnet.be] BELNET routing server, Brussels
> :*.be SERVER irc.skybel.net 5 5 :Skynet SA/NV IRC Server
>
> Taken from this, these are the tokens irc.dknet.dk uses when talking to
> "me":
>
> token name distance
>
> 1 irc.dknet.dk 1
> 47 sunsite.auc.dk 2
> 2 irc2.sci.kun.nl 3
> 3 irc.sci.kun.nl 4
> 4 *.be 4
> 5 irc.skybel.net 5
>
> From this the service/ircd builds a nice list so that when it gets a user:
>
> NICK Null 1 robert irc.dknet.dk 1 +oiw :Would you like to know more ?
>
> it sees the token ^ and sees that Null uses irc.dknet.dk.
Yeah I got this part, all working fine there... see bottom
> Since it has the token, it can from here also deduct the distance
> (actually just stores a pointer to the client's server structure, which
> you might want to do too)
>
> (more at the bottom)
>
> > >NICK <nick> <distance> <u> <h> <irc-server-token> <usermodes> :<realname>
> > >
> > >The irc-server-token is taken from the SERVER command which looks like
> > >this:
> > >
> > >:<originator> SERVER <server> <distance> <token> :<text>
> > >
> > >The ":<originator>" and "<token>" fields aren't there for the first
> > >SERVER-line you get on a new link.
>
Yeah I got this as well, downlinks & uplinks dive you the token in the SERVER command,
no problem.. sussed that out 8-) ... see below
>
> except that I was wrong.. it's the distance you haven't got.. the token is
> there of course.
>
> -- Robert Martin-Legène / Null ! robert@xxxxxxxxxxxx
We seem to be at cross purposes, either that or I am just thick... ;-)
On connect I issue:
PASS ........
SERVER <server name> <number> :text
The number is it distance or token? If it is distance, no problem, if it is token (as
i think you corrected above) how do I select a valid token? Do i just pick a number?
Does the 'uplink' tell me what my token is? - This is the problem I have.... My NICK
command you have confirmed I correctly formatted, but if I am getting the server token
incorrect, this is most likely the cause for the error.
This is the bit that was not clear to me in the source. The services will never
connect to more than one server at a time, and does not care about server token for the
current connecting server, so the remote tokens are thankfully not an issue, it's just
getting the uplink to accept the services virtual users without complaints.
Thanks for your help again,
Yours
Matthew
begin:vcard
n:Sullivan;Matthew
tel;pager:+44 (0)181 564 5100
tel;cell:+44 (0)780 122 5744
tel;fax:+44 (0)181 564 5101
tel;home:Ex-Directory
tel;work:+44 (0)181 564 5115
x-mozilla-html:TRUE
url:http://people.netscape.com/matthews/
org:<TABLE cols=2 width=350 spacing=0 rows=1><TR><TD width=50><img src="http://home.netscape.com/inserts/images/lighthouse.gif"></TD><TD><TABLE width=250 spacing=0 border=0><TR><TD><FONT SIZE=2>Technical Support Engineer<TR><TD><FONT SIZE=2>Netscape Communications UK LTD<TR><TD><FONT SIZE=2>Northern Europe Technical Services</TABLE></TABLE>
version:2.1
email;internet:matthew@xxxxxxxxxxxx
note:AIM ID - 'm netscape'
adr;quoted-printable;quoted-printable:;;No. 4 Status Park=0D=0A=
Nobel Drive=0D=0A=
Hayes;London;Middlesex;UB3 5EY;England
x-mozilla-cpt:nemesis.netscape.com;30864
fn:Matthew Sullivan
end:vcard