mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-24 09:25:21 +00:00
8d9bc83214
I think it's useless, buggy and hides parsing errors for no good reason.
17 lines
321 B
Go
17 lines
321 B
Go
package network
|
|
|
|
import (
|
|
"net"
|
|
|
|
"github.com/CityOfZion/neo-go/pkg/network/payload"
|
|
)
|
|
|
|
// Peer represents a network node neo-go is connected to.
|
|
type Peer interface {
|
|
NetAddr() *net.TCPAddr
|
|
Disconnect(error)
|
|
WriteMsg(msg *Message) error
|
|
Done() chan error
|
|
Version() *payload.Version
|
|
SetVersion(*payload.Version)
|
|
}
|