MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / CreateUDPSocket

Method CreateUDPSocket

internal/nat/traversal.go:25–27  ·  view source on GitHub ↗

CreateUDPSocket creates a UDP socket for hole punching

()

Source from the content-addressed store, hash-verified

23
24// CreateUDPSocket creates a UDP socket for hole punching
25func (n *DefaultTraversal) CreateUDPSocket() (*net.UDPConn, int, error) {
26 return shared.CreateUDPSocket()
27}
28
29// PerformHolePunch performs NAT hole punching with the Lambda
30func (n *DefaultTraversal) PerformHolePunch(conn *net.UDPConn, sessionID string, lambdaAddr *net.UDPAddr, timeout time.Duration) error {

Callers

nothing calls this directly

Calls 1

CreateUDPSocketFunction · 0.92

Tested by

no test coverage detected