measured_appnet

package
v0.3.0-alpha7 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Copyright 2021 Thorben Krüger (thorben.krueger@ovgu.de)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2021 Thorben Krüger (thorben.krueger@ovgu.de)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2021 Thorben Krüger (thorben.krueger@ovgu.de)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2021 Thorben Krüger (thorben.krueger@ovgu.de)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(listen *net.UDPAddr) (*snet.Conn, error)

func ListenPort

func ListenPort(port uint16) (*snet.Conn, error)

func NewNetwork

func NewNetwork(ia addr.IA, dispatcher reliable.Dispatcher,
	revHandler snet.RevocationHandler) *snet.SCIONNetwork

Types

type Network

type Network struct {
	snet.Network
	IA          addr.IA
	PathQuerier snet.PathQuerier
	// contains filtered or unexported fields
}

func DefNetwork

func DefNetwork() *Network

type TimedPacketDispatcherService

type TimedPacketDispatcherService struct {
	Dispatcher  reliable.Dispatcher
	SCMPHandler snet.SCMPHandler
}

func (*TimedPacketDispatcherService) Register

func (s *TimedPacketDispatcherService) Register(ctx context.Context, ia addr.IA,
	registration *net.UDPAddr, svc addr.HostSVC) (snet.PacketConn, uint16, error)

type TimedSCIONPacketConn

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

func (*TimedSCIONPacketConn) Close

func (c *TimedSCIONPacketConn) Close() error

func (*TimedSCIONPacketConn) ReadFrom

func (c *TimedSCIONPacketConn) ReadFrom(pkt *snet.Packet, ov *net.UDPAddr) error

func (*TimedSCIONPacketConn) SetDeadline

func (c *TimedSCIONPacketConn) SetDeadline(d time.Time) error

func (*TimedSCIONPacketConn) SetReadDeadline

func (c *TimedSCIONPacketConn) SetReadDeadline(d time.Time) error

func (*TimedSCIONPacketConn) SetWriteDeadline

func (c *TimedSCIONPacketConn) SetWriteDeadline(d time.Time) error

func (*TimedSCIONPacketConn) WriteTo

func (c *TimedSCIONPacketConn) WriteTo(pkt *snet.Packet, ov *net.UDPAddr) error

Jump to

Keyboard shortcuts

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