Versions in this module Expand all Collapse all v0 v0.1.1 Feb 8, 2015 Changes in this version + type Conn struct + Peer [32]byte + func NewClient(conn io.ReadWriteCloser, myIdentity, myIdentityPublic, serverPublic *[32]byte) *Conn + func NewServer(conn io.ReadWriteCloser, identity *[32]byte) *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