gnutella

package
v0.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL