network

package
v0.0.0-...-0714773 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateListener

func CreateListener(iface, ip string) error

CreateListener Creates a listener

func RemoveListener

func RemoveListener(iface, ip string) error

RemoveListener Removes a listener

Types

type Address

type Address struct {
	IP      string
	Netmask int
}

Address contins the ip + netmask

type Iface

type Iface struct {
	Ipv4 []Address
	Ipv6 []Address
}

Iface is a interface that can have ip's

Jump to

Keyboard shortcuts

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