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 

Heavy duty Base64 decoding.

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
experts
Voice


Joined: 18 Jun 2007
Posts: 4

PostPosted: Tue Jun 19, 2007 3:36 am    Post subject: Heavy duty Base64 decoding. Reply with quote

Hi guys,

I need to decode a lot of base64 encoded messages. Something to the order of 70 per second.
I heard that it would be better writing a c module to do the decoding rather than decode purely using a tcl script.
Is this true?
Back to top
View user's profile Send private message
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Tue Jun 19, 2007 6:54 am    Post subject: Reply with quote

top level C code is faster and more effective than TCL, so yes i would agree C is better for this kind of job.
_________________
r0t3n @ #r0t3n @ Quakenet
Back to top
View user's profile Send private message MSN Messenger
experts
Voice


Joined: 18 Jun 2007
Posts: 4

PostPosted: Tue Sep 04, 2007 1:20 am    Post subject: Reply with quote

Heyz, thanks for the info.
Do you know a very basic C module written for eggdrop scripts?
I am not so sure on the interfacing.
I am more used to coding in C for mirc.
Would appreciate any help pointing me to a guide or an example on how to write a C module for tcl scripts.
As for the base 64 encoding and decoding part. that is not a prob. I just need the interfacing format.

Thanks!
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Sep 04, 2007 8:52 am    Post subject: Reply with quote

Quote:
#### WOOBIE MODULE ####

# This is for demonstrative purposes only. If you are looking for starting
# point in writing modules, woobie is the right thing.
#loadmodule woobie

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Tue Sep 04, 2007 9:48 am    Post subject: Reply with quote

Depending on how you're going to use it, consider making it a tcl extension.

Check http://tcl.tk/man/tcl8.4/TclLib/contents.htm for the C functions that a Tcl extended C program may use.
_________________
Have you ever read "The Manual"?
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 -> Scripting Help 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