Documentation ¶ Index ¶ Constants type Conn func NewConn(c net.Conn) *Conn func (c *Conn) Close() error func (c *Conn) Handshake(reject bool) (err error) type Swarm func NewSwarm() *Swarm func (sw *Swarm) AddInboundPeer(conn *Conn) func (sw *Swarm) Close() error Constants ¶ View Source const Handshake = "GNUTELLA CONNECT/0.6" Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Conn ¶ type Conn struct { // contains filtered or unexported fields } func NewConn ¶ func NewConn(c net.Conn) *Conn func (*Conn) Close ¶ func (c *Conn) Close() error func (*Conn) Handshake ¶ func (c *Conn) Handshake(reject bool) (err error) type Swarm ¶ type Swarm struct { // contains filtered or unexported fields } func NewSwarm ¶ func NewSwarm() *Swarm func (*Swarm) AddInboundPeer ¶ func (sw *Swarm) AddInboundPeer(conn *Conn) func (*Swarm) Close ¶ func (sw *Swarm) Close() error Source Files ¶ View all Source files conn.go handshake.go swarm.go Click to show internal directories. Click to hide internal directories.