sockets

package
v0.0.0-...-7571207 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package sockets implements examples of how to write sockets for the torrent client.

currently demonstrates this using an adapter for standard golang net.Listener and net.Dialer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Socket

type Socket interface {
	net.Listener
	Dial(ctx context.Context, addr string) (conn net.Conn, err error)
}

Socket for torrent clients

func New

New creates a socket from a net listener and dialer.

Jump to

Keyboard shortcuts

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