mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-18 05:44:43 +00:00
c590cc02f4
closes #871
13 lines
285 B
Go
13 lines
285 B
Go
package network
|
|
|
|
import "time"
|
|
|
|
// Transporter is an interface that allows us to abstract
|
|
// any form of communication between the server and its peers.
|
|
type Transporter interface {
|
|
Dial(addr string, timeout time.Duration) error
|
|
Accept()
|
|
Proto() string
|
|
Address() string
|
|
Close()
|
|
}
|