mIRC Home    About    Download    Register    News    Help

Print Thread
DCC SEND Default Packet Size #218838 25/02/10 11:13 PM
Joined: Jan 2004
Posts: 6
C
CheeToS Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jan 2004
Posts: 6
I think it would be nice if there were a setting (either in DCC settings or on the DCC Send dialog, or both) to set the default packet size for DCC sends. I upload at roughly 63 KB/s with the default packet size of 4KB, but I get well over 300 KB/s with 32KB chunks. The problem, however, is that I often forget to change the setting before beginning a send. It's really obnoxious needing to cancel the send and resume it with the desired setting. I looked around and couldn't find any way to change the default.

Keep up the good work smile

Re: DCC SEND Default Packet Size [Re: CheeToS] #218843 26/02/10 12:45 AM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Just use an alias instead of /dcc send. Make the alias do the packet change automatically so you can type something like: /s nick file


Invision Support
#Invision on irc.irchighway.net
Re: DCC SEND Default Packet Size [Re: Riamus2] #218846 26/02/10 01:18 AM
Joined: Jan 2004
Posts: 6
C
CheeToS Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jan 2004
Posts: 6
I'm not using /dcc send, I'm using the built-in DCC Send dialog. The DCC Send dialog cannot be scripted to change the default.

edit: Either way, it doesn't appear that the /dcc send command has an option for packet size at all, only max cps. That would be a good thing to add, too!

Last edited by CheeToS; 26/02/10 01:21 AM.
Re: DCC SEND Default Packet Size [Re: CheeToS] #218849 26/02/10 02:24 AM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Code:
menu nicklist {
  DCC Send:customsend $1 $$?="Enter path\filename"
}
alias customsend {
  dcc packetsize 4096
  dcc send $1 $2-
}


Something like that would work. Then you'd right click a nick, select DCC Send from the menu, and enter the filename. Of course, you can make it more useful by using a file selection dialog rather than just an input event, but that gives you an idea.

EDIT: Btw, I also think changing the default in that dialog is a good feature. This is just a way to make it work in the meantime.

Last edited by Riamus2; 26/02/10 02:25 AM.

Invision Support
#Invision on irc.irchighway.net
Re: DCC SEND Default Packet Size [Re: Riamus2] #218851 26/02/10 03:23 AM
Joined: Jan 2004
Posts: 6
C
CheeToS Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jan 2004
Posts: 6
Ah, good call, didn't know about the packetsize argument. Thanks!