atomos

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BROADCAST_IP_ADDR string = "224.0.0.237" //Do I need adhoc? "244.0.2.237"
	BROADCAST_IP_PORT int    = 37147
)

Variables

This section is empty.

Functions

func GetLocalAddrForInterface

func GetLocalAddrForInterface(i *net.Interface,
	ip interface{}) (*net.IPNet, error)

Probaby Not Needed

func GetNetworkInterface

func GetNetworkInterface() (*net.Interface, error)

MAy want to do a double check that (callback) ip is on said interface

Types

type IPv4

type IPv4 struct{}

type IPv6

type IPv6 struct{}

type LinuxNetworkInterfaceError

type LinuxNetworkInterfaceError struct{}

func (LinuxNetworkInterfaceError) Error

func (err LinuxNetworkInterfaceError) Error() string

type P2PNetworkNode

type P2PNetworkNode interface {
}

type P2PNode

type P2PNode struct {
	Interface        *net.Interface
	PacketConnection *ipv4.PacketConn
}

func NewP2PNode

func NewP2PNode() (*P2PNode, error)

type WindowsNetworkInterfaceError

type WindowsNetworkInterfaceError struct{}

func (WindowsNetworkInterfaceError) Error

Jump to

Keyboard shortcuts

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