P := largest packet
while (true)
while (P overflows)
send part
append P
while (exists packets that won't overflow)
append largest of them
if (exists packets that would be less fragmented if started here)
P := largest of them
else
send
if (no more packets)
break
else
P := largest packet
Created
July 14, 2013 20:22
-
-
Save bqqbarbhg/5995811 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello
this is nice code thank mr skeltal