Documentation
¶
Index ¶
- Constants
- type LinkType
- type Pkt
- type Scope
- type State
- type URI
- func DecodeURIString(str string) *URI
- func MakeDevFaceURI(ifname string) *URI
- func MakeFDFaceURI(fd int) *URI
- func MakeInternalFaceURI() *URI
- func MakeNullFaceURI() *URI
- func MakeTCPFaceURI(ipVersion int, host string, port uint16) *URI
- func MakeUDPFaceURI(ipVersion int, host string, port uint16) *URI
- func MakeUnixFaceURI(path string) *URI
- func MakeWebSocketClientFaceURI(addr net.Addr) *URI
- func MakeWebSocketServerFaceURI(u *url.URL) *URI
- func (u *URI) Canonize() error
- func (u *URI) IsCanonical() bool
- func (u *URI) Path() string
- func (u *URI) PathHost() string
- func (u *URI) PathZone() string
- func (u *URI) Port() uint16
- func (u *URI) Scheme() string
- func (u *URI) Scope() Scope
- func (u *URI) String() string
- func (u *URI) URIType() URIType
- type URIType
Constants ¶
const MaxNDNPacketSize = 8800
MaxNDNPacketSize is the maximum allowed NDN packet size
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pkt ¶
type Pkt struct {
Name enc.Name
L3 *spec.Packet
Raw []byte
PitToken []byte
CongestionMark *uint64
IncomingFaceID *uint64
NextHopFaceID *uint64
CachePolicy *uint64
}
Pkt represents a pending packet to be sent or recently received on the link, plus any associated metadata.
type URI ¶
type URI struct {
// contains filtered or unexported fields
}
URI represents a URI for a face.
func DecodeURIString ¶
func MakeDevFaceURI ¶
MakeDevFaceURI constucts a URI for a network interface.
func MakeFDFaceURI ¶
MakeFDFaceURI constructs a file descriptor URI.
func MakeInternalFaceURI ¶
func MakeInternalFaceURI() *URI
MakeInternalFaceURI constructs an internal face URI.
func MakeTCPFaceURI ¶
MakeTCPFaceURI constructs a URI for a TCP face.
func MakeUDPFaceURI ¶
MakeUDPFaceURI constructs a URI for a UDP face.
func MakeUnixFaceURI ¶
MakeUnixFaceURI constructs a URI for a Unix face.
func MakeWebSocketClientFaceURI ¶
MakeWebSocketClientFaceURI constructs a URI for a WebSocket server.
func MakeWebSocketServerFaceURI ¶
MakeWebSocketServerFaceURI constructs a URI for a WebSocket server.
func (*URI) IsCanonical ¶
IsCanonical returns whether the face URI is canonical.