Initial UDT implementation for file transfer.

New function RequestFileTransferUDT to download files from other peers.
This commit is contained in:
Kleissner
2021-10-24 04:26:30 +02:00
parent 6c2d526251
commit 75e3d9a42e
50 changed files with 4679 additions and 2 deletions

View File

@@ -143,7 +143,7 @@ func (v *virtualPacketConn) sequenceTerminate() {
// Close closes the connection.
func (v *virtualPacketConn) Close() (err error) {
return v.Terminate(true, 1)
return v.Terminate(false, 1)
}
// WriteTo writes a packet with payload p to addr. WriteTo can be made to time out and return an Error after a fixed time limit.