mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 04:37:36 +03:00
docs: improve documentation of OptimizeConn (#3910)
This commit is contained in:
parent
8352e5dc32
commit
da298d09e1
2 changed files with 8 additions and 3 deletions
|
@ -31,7 +31,8 @@ type Transport struct {
|
|||
// Bad things will happen if passed to multiple Transports.
|
||||
//
|
||||
// If not done by the user, the connection is passed through OptimizeConn to enable a number of optimizations.
|
||||
// After passing the connection to the Transport, its invalid to call ReadFrom and WriteTo.
|
||||
// After passing the connection to the Transport, it's invalid to call ReadFrom on the connection.
|
||||
// Calling WriteTo is only valid on the connection returned by OptimizeConn.
|
||||
Conn net.PacketConn
|
||||
|
||||
// The length of the connection ID in bytes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue