[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do ircd differentiate between connection classes ??



Hi,

If there are 3 lines in the ircd.conf for connection class

Y:1:90:0:20:100000
Y:2:90:300:1:600000
Y:10:90:0:3:100000

could you please tell me how does ircd differentiate them as client class
and server class? or does ircd reads only the first appearance of Y and
ignores the other Y's.

As it is mentioned in the document as a server class and client class in 

http://www.irc.org/tech_docs/ircnet/INSTALL-4.html#ss4.4

--------------------------------------------------------------------
    Y:23:120:300:5:100000:0:0: (server class)

    This defines class 23 to allow 5 auto-connections, which are checked
every 300 seconds. The connection is allowed to remain silent for 120
seconds before a PING is sent. NOTE: fields 3 & 4 are in seconds. The
SendQ is set to 100000 bytes.

    Another feature of connection class is the ability to do automatic
routing by using the class as a ``priority''. If you are connected to a
server which has a class lower than one of the servers that is ``behind''
it, the server will disconnect the lower class one and schedule a ``new''
connection for the higher class server.

    Y:1:60:0:50:20000:2:5: (client class)

    In case of a client class, the fields are interpreted a bit
differently. This class (number 1) can be used by up to 50 users. The
connections are allowed to remain silent for 60 seconds before a PING is
set. The SendQ is set to 20000 bytes. A new connection in this class will
only be allowed if there aren't more than 2 other local connections from
the same IP address, or more than 5 other connections on the net from the
same hostname.
--------------------------------------------------------------



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/