1. A system for dynamically adapting a transport-layer protocol, comprising: a transport-layer protocol configured to interface with a network layer protocol, wherein the transport-layer protocol comprises a plurality of swappable transport-layer mechanisms, each transport-layer mechanism of the plurality of transport-layer mechanisms implementing a specific area of transport-layer functionality of the transport layer protocol; a processor coupled to a local interface; a memory coupled to the local interface; and transport-protocol logic stored in the memory and executable by the processor, the transport-protocol logic comprising: monitor logic configured to detect a change in at least one network performance condition of a network communicatively coupled to the network interface; and adaptation logic configured to unload a first transport-layer mechanism of the plurality of transport-layer mechanisms and load a second transport-layer mechanism of the plurality of transport-layer mechanisms at run time and in response to a notification by the monitor logic.