more complete PR for adding more net support (#64)

This commit is contained in:
Pat Whittingslow
2026-07-03 17:04:17 -03:00
committed by GitHub
parent 2e825c2b01
commit ffb222f1ad
8 changed files with 350 additions and 1 deletions
+8
View File
@@ -9,6 +9,7 @@
package net
import (
"context"
"internal/itoa"
"io"
"net/netip"
@@ -139,3 +140,10 @@ func (c *TLSConn) Handshake() error {
panic("TLSConn.Handshake() not implemented")
return nil
}
// HandshakeContext runs the client or server handshake protocol if it has not
// yet been run. TINYGO: TLS is offloaded to the network device; this exists to
// satisfy callers (e.g. pion/ice) that require the context-aware variant.
func (c *TLSConn) HandshakeContext(ctx context.Context) error {
return c.Handshake()
}