How can I configure a socket for the best transfer speed?

Robert Höglund Wanlert

There are several factors that have may have affect on the transfer speed. Some general and important factors are:
-- MTU (Message Tranfer Unit) size
-- TTL (Time To Live) factor
-- Timeout factor

You can't configure all parameters for a socket from your Java code though. However, you may use native code to configure a socket to optimal transfer settings.