There's something more to consider.
In principle, you have to add your own protocol to the TCP protocol.
The block size is limited with TCP and you must manage yourself that the data arrives over 64kB completely in the correct order.
OSI model:
https://simple.wikipedia.org/wiki/OSI_modelTCP model:
https://en.wikipedia.org/wiki/Transmiss ... l_Protocolhttps://simple.wikipedia.org/wiki/Trans ... l_ProtocolYou can create a own application-layer...
Examples (very complex):
Link:
viewtopic.php?f=12&t=66075