Documentation ¶
Index ¶
- type Conn
- func (c *Conn) Close() (err error)
- func (c *Conn) Handshake() error
- func (c *Conn) Read(out []byte) (n int, err error)
- func (c *Conn) ReadProto(out proto.Message) error
- func (c *Conn) SetDeadline(t time.Time)
- func (c *Conn) WaitForClose() error
- func (c *Conn) Write(buf []byte) (n int, err error)
- func (c *Conn) WriteProto(msg proto.Message) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct { Peer [32]byte // contains filtered or unexported fields }
func NewClient ¶
func NewClient(conn io.ReadWriteCloser, myIdentity, myIdentityPublic, serverPublic *[32]byte) *Conn
func (*Conn) SetDeadline ¶
func (*Conn) WaitForClose ¶
Click to show internal directories.
Click to hide internal directories.