d06a49eb28
huge changes that need more doucmenting
2023-05-30 18:42:33 +01:00
Akilan Selvacoumar
9775525d35
gofmt peernet ( #103 )
2023-02-12 09:59:31 +00:00
Kleissner
cb1441c97a
VirtualPacketConn: New Stats field maintained by caller. This allows insight into active transfers.
...
New FileTransferStats and BlockTransferStats structures.
2022-03-16 23:52:55 +01:00
Kleissner
e2cda5b565
UDT: Record transfer metrics.
2022-03-14 06:13:52 +01:00
Kleissner
f305e5b158
Lite Packet algorithm for data transfer. It bypasses the CPU expensive Peernet Protocol packet encoding (which uses public key signing).
2022-01-17 03:48:40 +01:00
Kleissner
f2c344dc96
Major refactoring of the code base into Backend structure. Increase version number to Alpha 6 to prepare for the upcoming release.
2021-12-29 05:29:34 +01:00
Kleissner
85dcb9d256
UDT: Multiplexer pass down external termination signal. This makes sure any socket reader will return with EOF and does not hang.
...
Change transferSequenceTimeout to 1 minute which is more appropriate.
2021-12-08 01:36:50 +01:00
Kleissner
50ec1c804e
Proper abstraction of virtualPacketConn. It now supports other transport protocol encodings.
2021-12-04 02:56:14 +01:00
Kleissner
68d8c11872
Refactor file transfer header encoding into protocol sub-module.
2021-11-30 03:53:19 +01:00
Kleissner
a727f4d8b1
Define and document the flow window size for transfer.
...
Document webapi timeout parameters.
2021-11-13 14:41:14 +01:00
Kleissner
f3d5f23cf9
Transfer: Record close reason of underlying library (UDT). This helps for debugging issues. Close #54
2021-11-08 04:40:53 +01:00
Kleissner
451aac9c47
Fix bug in transfer code. A wrong transfer size was returned when an offset was used.
2021-11-03 21:02:00 +01:00
Kleissner
9ddca35277
Transfer: Set max packet size.
...
udt: Improve error messages. Fix bug in udtSocketSend.processDataMsg, the header was not considered in the max size.
webapi: New /file/view API which is useful for immediate testing of file transfer.
2021-10-28 04:06:10 +02:00
Kleissner
b5266b1c52
File Transfer: Add header to file transfer to indicate file size and transfer size. This is important to know when to stop reading. It will also help when reading only ranges (which is important for video streaming).
...
New function FileTransferReadHeaderUDT to read the header.
Warehouse: ReadFile return count bytes read
2021-10-25 03:34:28 +02:00
Kleissner
39bc255007
Minor cleanup
2021-10-24 06:31:36 +02:00
Kleissner
f6bbd02a01
Transfer: Change virtual connection from net.PacketConn to channels which is faster and less complex.
...
Improve termination behavior and documentation of it.
2021-10-24 06:27:23 +02:00
Kleissner
75e3d9a42e
Initial UDT implementation for file transfer.
...
New function RequestFileTransferUDT to download files from other peers.
2021-10-24 04:26:30 +02:00