Source File
nattype.go
Belonging Package
github.com/libp2p/go-libp2p/core/event
package eventimport// EvtNATDeviceTypeChanged is an event struct to be emitted when the type of the NAT device changes for a Transport Protocol.//// Note: This event is meaningful ONLY if the AutoNAT Reachability is Private.// Consumers of this event should ALSO consume the `EvtLocalReachabilityChanged` event and interpret// this event ONLY if the Reachability on the `EvtLocalReachabilityChanged` is Private.type EvtNATDeviceTypeChanged struct {// TransportProtocol is the Transport Protocol for which the NAT Device Type has been determined.TransportProtocol network.NATTransportProtocol// NatDeviceType indicates the type of the NAT Device for the Transport Protocol.// Currently, it can be either a `EndpointIndependent NAT` or a `EndpointDependent NAT`. Please see the detailed documentation// on `network.NATDeviceType` enumerations for a better understanding of what these types mean and// how they impact Connectivity and Hole Punching.NatDeviceType network.NATDeviceType}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |