Page 1 of 1

Server protocol: NETINFO

Posted: Sat May 28, 2005 11:02 pm
by Merwin
Hello,

I'm a french coder so i'm sorry for my english !
I'm developping small services for Unreal but i don't understand two things:

1) What is the MD5:<digest> in the NETINFO command?
2) How can i get crypted host of users?

Thanks you a lot,
--
Merwin

Posted: Sat May 28, 2005 11:52 pm
by Stealth
The MD5 is for the cloak keys, I believe services servers can just specify "*" for this param.

The crypted host is sent with SETHOST (see link below).

Some incomplete documentation about linking: http://web.ircsystems.net/stskeeps/unrealprotocol.html

Sorry

Posted: Sat May 28, 2005 11:59 pm
by Merwin
The SETHOST is used only with vhost, the encrypted host isn't sent by SETHOST !
I think i need to generate it by myself, but how can i do?

Posted: Sun May 29, 2005 12:46 am
by Stealth
You should enable NICKv2 anyway, so the crypted host is sent in the NICK command.

No

Posted: Sun May 29, 2005 8:53 am
by Merwin
I'v always enable NICKv2 in the PROTOCTL, but there is no crypted host but an *:

Code: Select all

NICK Merwin 1 1117356539 merwin AMarseille-253-1-48-172.w83-205.abo.wanadoo.fr irc.------.fr 0 +x * :Merwin
I really need to generate them by myself!
How can i do?

Posted: Sun May 29, 2005 9:13 am
by w00t
Make sure you're also sending the VHP (? I have a dodgy memory, but I'm pretty sure this is it.) protoctl token (this so should be documented ;)) - this instructs the remote server to send you the crypted host.

As for sethost, it is reasonably safe to ignore it. I do as it's a services server, does it really care about it's own network name etc? ;)

Thanks

Posted: Sun May 29, 2005 10:03 am
by Merwin
Thanks you a lot it works fine!
It doesn't really care but it's for keep all infos in memory, my services will integrate a web server so i want to show alls these infos :)

Posted: Sun May 29, 2005 10:14 am
by w00t
Make sure you link us back to them, I'd be interested to take a look sometime :).

That's right

Posted: Sun May 29, 2005 10:26 am
by Merwin
This service is developped in TCL ('pure TCL', without eggdrop or other as we can see sometimes...), a major feature is that you can extend it very easyly with a system of 'bind' as Eggdrop !

A lot of TCL commands are added in order to manage users, you can easily create bots an manage them etc...

You want to add a anti-proxy? just add a antiproxy.tcl in the scripts dir and rehash, this file as juste to bind 'NEWUSER' event, scan his ip and why not gline him.

I hope you understand a little what i'm explaining lol (i'm french...)!

Posted: Sun May 29, 2005 10:47 am
by w00t
Yeah, I understand :). Hanging around here and the support channel makes it fairly easy to interpret mangled english ;).

Lag

Posted: Sun May 29, 2005 11:08 am
by Merwin
Some people think that tcl is a bad language to do services, but i'v tested them on some networks, there is no lag, if you connect them on local ip it's very good!

I think network with more than 3000/4000 users it is possible that it lag... but i haven't test!

Becouse oh the simplicity of TCL i think it's a good method :)

Posted: Sun May 29, 2005 12:48 pm
by w00t
It will lag ;).

For small networks it'll be fine, I've done some basic services in PHP before, as well as WinSE, which was originally crappily coded by myself in vb6, then redone wonderfully in vb.net by aquanight ;).