This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Search found 13 matches

by Empus
Tue Mar 04, 2008 7:52 am
Forum: Scripting Help
Topic: Accepting DCC Files, without filesys.mod
Replies: 24
Views: 12481

To be honest, I believe it wasn't being placed in the right area of the code.

Can you show me what you mean?

I'm a complete noob when it comes to this, I've never had to deal with TCP sockets like this -reading and writing a file is as close as I've gotten to this :>
by Empus
Tue Mar 04, 2008 5:57 am
Forum: Scripting Help
Topic: Accepting DCC Files, without filesys.mod
Replies: 24
Views: 12481

Forgive me, wasn't the point of this new method, given the prior results, to not use fcopy?
by Empus
Tue Mar 04, 2008 5:02 am
Forum: Scripting Help
Topic: Accepting DCC Files, without filesys.mod
Replies: 24
Views: 12481

Unfortunately that made it much much slower :<
by Empus
Mon Mar 03, 2008 6:11 pm
Forum: Scripting Help
Topic: Accepting DCC Files, without filesys.mod
Replies: 24
Views: 12481

Thanks user and nml375, your help is much appreciated.

The code is working. I'm currently sending a 700mb file to the bot from a local client, but the transfer speed is only about 70kB/s

Any ideas on how to improve this? I would expect the transfer to be a lot faster than that...
by Empus
Sun Mar 02, 2008 6:28 am
Forum: Scripting Help
Topic: Accepting DCC Files, without filesys.mod
Replies: 24
Views: 12481

Ah yes, I've changed little bits and pieces in this code for days now trying to work out why it isn't working, but to no avail. I did have them declared with 'global', perhaps just not in that example. CopyMore doesnt seem to be looping properly. In CopyMore, i've added a: puts $in $total, as acknow...
by Empus
Sun Mar 02, 2008 2:42 am
Forum: Scripting Help
Topic: Accepting DCC Files, without filesys.mod
Replies: 24
Views: 12481

You're right, the script does seem to wait forever. I've removed vwait, and it no longer does this, but CopyMore seems to still not run. Can you clarify your point of namespaces, and offer advice as to what to do to get this working? I used file writes in bgerror to ensure that if the eggdrop itself...
by Empus
Sat Mar 01, 2008 11:06 pm
Forum: Scripting Help
Topic: Accepting DCC Files, without filesys.mod
Replies: 24
Views: 12481

It shall also be noted, that my bgerror code shown here, has not produced anything in bgerror.txt thus far.
by Empus
Sat Mar 01, 2008 10:53 pm
Forum: Scripting Help
Topic: Accepting DCC Files, without filesys.mod
Replies: 24
Views: 12481

But I need something to call the event loop, this is the reason I'm using vwait...

Can you see what is wrong with the code I've pasted, or suggest another method to try?

I really seem to be getting nowhere fast.
by Empus
Sat Mar 01, 2008 4:09 am
Forum: Scripting Help
Topic: Accepting DCC Files, without filesys.mod
Replies: 24
Views: 12481

Ok, so I have an update. I'm using fcopy, but the callback proc doesn't appear to be running, or I'm having mixed results (ie. the last block isn't copied). Also, I just read http://forum.egghelp.org/viewtopic.php?t=11518 and am now worried about this implementation. If I use vwait during the transf...
by Empus
Fri Feb 29, 2008 9:23 pm
Forum: Scripting Help
Topic: Accepting DCC Files, without filesys.mod
Replies: 24
Views: 12481

Ok, I used the code example you gave me, and also from the FCOPY man page. The file is transferring, but I'm not getting an acknowledgement of a successful transfer. I initially wasn't declaring the variable "done" as global, so when I added that (in sockConnected), the CopyMore proc was r...
by Empus
Fri Feb 29, 2008 1:11 am
Forum: Scripting Help
Topic: Accepting DCC Files, without filesys.mod
Replies: 24
Views: 12481

user you are a champion, your help is much appreciated.

Whilst I've scripted for quite a few years now, I've never really had to play with sockets so no doubt I will need a bit more help along the way, but you have definitely given me enough to start with.
by Empus
Thu Feb 28, 2008 7:30 am
Forum: Scripting Help
Topic: Accepting DCC Files, without filesys.mod
Replies: 24
Views: 12481

I've seen some of your posts on this forum, and to be honest I was hoping you may be the one who replied to this :> It's the TCP/File bits of this that I'm not up with; As far as I know, DCC requires acknowledgements (every 2K) where the file is written in blocks, as opposed to a streamed connection...
by Empus
Thu Feb 28, 2008 5:55 am
Forum: Scripting Help
Topic: Accepting DCC Files, without filesys.mod
Replies: 24
Views: 12481

Accepting DCC Files, without filesys.mod

Hi, I am wanting to write some code whereby an eggdrop can accept DCC SENDs to it. However, the Filesys module is not approriate, for a few reasons: a). I do not want to use the eggdrop userfile for matching, but rather SQL b). I need to screen what files will be accepted (sizes, file types, source)...