github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/network/transport.go (about)

     1  package network
     2  
     3  import "time"
     4  
     5  // Transporter is an interface that allows us to abstract
     6  // any form of communication between the server and its peers.
     7  type Transporter interface {
     8  	Dial(addr string, timeout time.Duration) (AddressablePeer, error)
     9  	Accept()
    10  	Proto() string
    11  	HostPort() (string, string)
    12  	Close()
    13  }