Limit bandwidth?

176 views
Skip to first unread message

ravior...@venion.net

unread,
Apr 4, 2016, 7:00:50 PM4/4/16
to lidgren-network-gen3
Hello,

Using this for quite a while now. I'm wondering, is there a way to limit the maximum throughput of the network data?

Would be really helpful as I want to transfer larger files sometime and dont want to flood the entire uplink of the connection with that.

Greetings,

Ravior

Christopher Beamond

unread,
Jan 19, 2017, 9:57:32 AM1/19/17
to lidgren-network-gen3
You'd have to simply lower the amount of messages you're sending manually by setting a target figure, calculating how fast to transfer and then halting and/or queueing all outgoing messages past that. It'll have to be async, because you can't just queue the entire file since that means loading it all into memory and thier split messages. You'll also need to develop a technique to fairly distribute bandwidth between different message types, and a priority system wouldn't be bad either. 
Reply all
Reply to author
Forward
Message has been deleted
0 new messages