sckt

package
v0.0.0-...-ead4ddb Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datagram

type Datagram struct {
	Origin net.Addr
	Data   []byte
	Socket Socket
}

type Socket

type Socket interface {
	Write(data []byte, Dest net.Addr) (int, error)
	Close() error
	SocketID() int
	ReceiveCh(chan<- *Datagram) chan<- *Datagram
	AsyncListenAndServe()
	LocalAddr() net.Addr
}

func NewUdp6Socket

func NewUdp6Socket(SocketID, NetInterfaceIdx, Port int, chRx chan<- *Datagram) (Socket, error)

func NewWSSocket

func NewWSSocket(SocketID int, Uri string, Port int, chRx chan<- *Datagram) (Socket, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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