package autonat

import (
	

	ma 
	manet 
)

var _ network.Notifiee = (*AmbientAutoNAT)(nil)

// Listen is part of the network.Notifiee interface
func ( *AmbientAutoNAT) ( network.Network,  ma.Multiaddr) {}

// ListenClose is part of the network.Notifiee interface
func ( *AmbientAutoNAT) ( network.Network,  ma.Multiaddr) {}

// Connected is part of the network.Notifiee interface
func ( *AmbientAutoNAT) ( network.Network,  network.Conn) {
	if .Stat().Direction == network.DirInbound &&
		manet.IsPublicAddr(.RemoteMultiaddr()) {
		select {
		case .inboundConn <- :
		default:
		}
	}
}

// Disconnected is part of the network.Notifiee interface
func ( *AmbientAutoNAT) ( network.Network,  network.Conn) {}