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 

how to speed up eggdrops default text-output to server

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


Joined: 01 Nov 2005
Posts: 3

PostPosted: Tue Nov 01, 2005 3:59 pm    Post subject: how to speed up eggdrops default text-output to server Reply with quote

Hello!

We have an own (private) irc-network, and a eggdrop running very much tcl-scripts.
I'm trying to speed up the output of the bot to 10 lines per sec.
The solutions i found in this forum doesn't work for me, because i cant change all tcl-scripts to use putquick or some...

Is it possible to change the c-code of the bot, so it will write *any* messages faster?

(By the way, the irc-server is running on the same-machine.)

Things i tried in the server.c (without success):
- define msgrate 0
- define maxpenalty 30

Greetings
formtapez
Back to top
View user's profile Send private message
dwickie
Halfop


Joined: 21 Aug 2004
Posts: 76
Location: /pub/beer

PostPosted: Tue Nov 01, 2005 5:35 pm    Post subject: Reply with quote

Code:

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



usage same as putquick/putserv/puthelp
Back to top
View user's profile Send private message
formtapez
Voice


Joined: 01 Nov 2005
Posts: 3

PostPosted: Tue Nov 01, 2005 5:50 pm    Post subject: Reply with quote

With that, only the first 4 lines are sent fast. After that i get 1sec delay per line.

But not with putdccraw 0. I use socket no. 8 (irc-server-socked)
Back to top
View user's profile Send private message
]Kami[
Owner


Joined: 24 Jul 2003
Posts: 590
Location: Slovenia

PostPosted: Sun Nov 06, 2005 6:56 pm    Post subject: Reply with quote

#define msgrate should work.

"/* Number of seconds to wait between transmitting queued lines to the server
* lower this value at your own risk. ircd is known to start flood control
* at 512 bytes/2 seconds.
*/ "

Don't forget that you need to recompile the bot when you change it.

Also check this thread
_________________
Slovene Eggdrop Page
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
formtapez
Voice


Joined: 01 Nov 2005
Posts: 3

PostPosted: Sun Nov 06, 2005 9:30 pm    Post subject: Reply with quote

Problem solved: Giving the Bot ircOP status helps a lot Cool
Back to top
View user's profile Send private message
KrzychuG
Master


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

PostPosted: Mon Nov 07, 2005 3:15 am    Post subject: Reply with quote

formtapez wrote:
Problem solved: Giving the Bot ircOP status helps a lot 8)


I told ya, that it's server dependant ;P
_________________
Que?
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Wed Nov 09, 2005 1:54 am    Post subject: Reply with quote

[putdccraw] is undocumented for a reason; it should not be used, except for issuing a single command only when you are absolutely sure it will get through (not ignored due to command pace limitations which are imposed by most servers)
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
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