transport

package
v0.0.0-...-eecf34b Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport

type Transport interface {
	SendAndReceive(interest *ndn.Interest) (time.Duration, error)
}

type UDPTransport

type UDPTransport struct {
	// contains filtered or unexported fields
}

func NewUDPTransport

func NewUDPTransport(scheme string, host string, port int) (*UDPTransport, error)

func (*UDPTransport) SendAndReceive

func (t *UDPTransport) SendAndReceive(interest *ndn.Interest) (time.Duration, error)

type WebSocketTransport

type WebSocketTransport struct {
	// contains filtered or unexported fields
}

func NewWebSocketTransport

func NewWebSocketTransport(protocol string, wsUri string) (*WebSocketTransport, error)

func (*WebSocketTransport) SendAndReceive

func (t *WebSocketTransport) SendAndReceive(interest *ndn.Interest) (time.Duration, error)

Jump to

Keyboard shortcuts

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