egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

editing server.c for performance issues ...

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming
View previous topic :: View next topic  
Author Message
]Godlike[
Voice


Joined: 29 Apr 2005
Posts: 9

PostPosted: Fri Apr 29, 2005 4:02 pm    Post subject: editing server.c for performance issues ... Reply with quote

Ok. I`ll describe what i am doing, want to do.

I use eggdrop 1.6.17, but it`s queueing system is too slow for me. So i need a eggdrop who will be able to flood out 100 lines or more in a sec or two.

Now i know that can be done, because it`s a RAW DCC mode somehow. I have a private ircd on which (Excess Flood) is disabled for this paticualry bot, so that wont be a problem.

Now i use my scripts with the procedure:
Code:

proc putfast {arg} {
  append arg "\n"
  putdccraw 0 [string length $arg] $arg
}


so there is not much i can optimize there.

So i know the bot queueing system to the server is made in server.c which is in: src\mod\server.mod\server.c but how could i optimize this to realy make the bot flood out what i need, because now it`s realy too slow Crying or Very sad

I tried with #define msgrate 0 ... no change,
and with
Code:

tputs(serv, buf, len);
    return;

which is also not helping (this was described in this forum when i searched through it).

So please please please help me out, i realy need a fast bot, so i can use it for flooding results from a game server and some other stuffs.

Please help me out, and thx for reading this long text Smile
Back to top
View user's profile Send private message
stdragon
Owner


Joined: 23 Sep 2001
Posts: 959

PostPosted: Wed May 04, 2005 10:58 pm    Post subject: Reply with quote

If you use putdccraw, it doesn't use the bot's queueing system, so there's no point changing the server code.

One thing you might try is combining lines into a single message, e.g.

putfast "$msg1\n$msg2\n$msg3"
Back to top
View user's profile Send private message Visit poster's website
]Godlike[
Voice


Joined: 29 Apr 2005
Posts: 9

PostPosted: Sat May 07, 2005 5:57 am    Post subject: Reply with quote

Well yes i use dccraw but bot still isnt fast, he floods a few msg more in a second, but that still isn`t it.

And i saw how eggdrop can flood out 200 lines in a second, and the guy who made it edited the source not just used the dccraw, he told me to look in the server.c but other than that i dunno what to change, tried a few modifications but still no progress have been made, somebody sure can tell me more about this so i can make this to work Sad

cya.
Back to top
View user's profile Send private message
KrzychuG
Master


Joined: 16 Aug 2003
Posts: 306
Location: Torun, Poland

PostPosted: Sat May 07, 2005 7:51 am    Post subject: Reply with quote

Everything depend on network and connection. putdccraw send data directly to server (without using queues) same as 'dprintf(-serv, "DATA");' in source code. Some network uses penalties and won't let any client to send too much data.
_________________
Que?
Back to top
View user's profile Send private message Visit poster's website
]Godlike[
Voice


Joined: 29 Apr 2005
Posts: 9

PostPosted: Sat May 07, 2005 9:05 am    Post subject: Reply with quote

Well it`s ircd which i set up and no penalties ....

And the bot which i seen somewhere was on the same version of ircd (Unreal IRCD), and it was a LOT better than mine...

And connection is very fast aswell ....

help Sad
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sat May 07, 2005 9:09 am    Post subject: Reply with quote

probably you exceed the outgoing buffer of the TCP connection what delays further of more than usually 4kb. So maybe the bot doesnt check often enough, if the queue has been flushed. Perhaps this check interval can be modified within the server.c, I dont know Smile. Just a suggestion.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
]Godlike[
Voice


Joined: 29 Apr 2005
Posts: 9

PostPosted: Sat May 07, 2005 2:45 pm    Post subject: Reply with quote

Good thinking, will check ...
Back to top
View user's profile Send private message
]Godlike[
Voice


Joined: 29 Apr 2005
Posts: 9

PostPosted: Sat May 07, 2005 5:30 pm    Post subject: Reply with quote

Heh, tried a few things, compiled like 30 times and tried different approaches, but nothing didn`t work Sad

Please, maybe some of the devel. team can help me, i realy need this Sad

cya
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber