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.
Index ¶
- func NewSelector(state *State) rpc.ServerSelector
- func NewStats(state *State) rpc.ServerConnectionTracer
- type LuaSelector
- func (s *LuaSelector) Close(local, remote pan.UDPAddr) error
- func (s *LuaSelector) Initialize(local, remote pan.UDPAddr, paths []*pan.Path) error
- func (s *LuaSelector) Path(local, remote pan.UDPAddr) (*pan.Path, error)
- func (s *LuaSelector) PathDown(local, remote pan.UDPAddr, fp pan.PathFingerprint, pi pan.PathInterface) error
- func (s *LuaSelector) Refresh(local, remote pan.UDPAddr, paths []*pan.Path) error
- type State
- type Stats
- func (s *Stats) AcknowledgedPacket(local, remote *pan.UDPAddr, level logging.EncryptionLevel, ...) error
- func (s *Stats) BufferedPacket(local, remote *pan.UDPAddr, ptype logging.PacketType) error
- func (s *Stats) Close(local, remote *pan.UDPAddr) error
- func (s *Stats) ClosedConnection(local, remote *pan.UDPAddr, err error) error
- func (s *Stats) Debug(local, remote *pan.UDPAddr, name, msg string) error
- func (s *Stats) DroppedEncryptionLevel(local, remote *pan.UDPAddr, level logging.EncryptionLevel) error
- func (s *Stats) DroppedKey(local, remote *pan.UDPAddr, generation logging.KeyPhase) error
- func (s *Stats) DroppedPacket(local, remote *pan.UDPAddr, ptype logging.PacketType, size logging.ByteCount, ...) error
- func (s *Stats) LossTimerCanceled(local, remote *pan.UDPAddr) error
- func (s *Stats) LossTimerExpired(local, remote *pan.UDPAddr, ttype logging.TimerType, ...) error
- func (s *Stats) LostPacket(local, remote *pan.UDPAddr, level logging.EncryptionLevel, ...) error
- func (s *Stats) NegotiatedVersion(local, remote *pan.UDPAddr, chosen logging.VersionNumber, ...) error
- func (s *Stats) ReceivedPacket(local, remote *pan.UDPAddr, hdr *logging.ExtendedHeader, ...) error
- func (s *Stats) ReceivedRetry(local, remote *pan.UDPAddr, hdr *logging.Header) error
- func (s *Stats) ReceivedTransportParameters(local, remote *pan.UDPAddr, parameters *logging.TransportParameters) error
- func (s *Stats) ReceivedVersionNegotiationPacket(local, remote *pan.UDPAddr, hdr *logging.Header, ...) error
- func (s *Stats) RestoredTransportParameters(local, remote *pan.UDPAddr, parameters *logging.TransportParameters) error
- func (s *Stats) SentPacket(local, remote *pan.UDPAddr, hdr *logging.ExtendedHeader, ...) error
- func (s *Stats) SentTransportParameters(local, remote *pan.UDPAddr, parameters *logging.TransportParameters) error
- func (s *Stats) SetLossTimer(local, remote *pan.UDPAddr, ttype logging.TimerType, ...) error
- func (s *Stats) StartedConnection(local, remote *pan.UDPAddr, srcConnID, destConnID logging.ConnectionID) error
- func (s *Stats) TracerForConnection(tracer_id uint64, p logging.Perspective, odcid logging.ConnectionID) error
- func (s *Stats) UpdatedCongestionState(local, remote *pan.UDPAddr, state logging.CongestionState) error
- func (s *Stats) UpdatedKey(local, remote *pan.UDPAddr, generation logging.KeyPhase, rmte bool) error
- func (s *Stats) UpdatedKeyFromTLS(local, remote *pan.UDPAddr, level logging.EncryptionLevel, ...) error
- func (s *Stats) UpdatedMetrics(local, remote *pan.UDPAddr, rttStats *rpc.RTTStats, ...) error
- func (s *Stats) UpdatedPTOCount(local, remote *pan.UDPAddr, value uint32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSelector ¶
func NewSelector(state *State) rpc.ServerSelector
func NewLuaSelector(script string) (*LuaSelector, error) {
func NewStats ¶
func NewStats(state *State) rpc.ServerConnectionTracer
Types ¶
type LuaSelector ¶
type LuaSelector struct { *State // contains filtered or unexported fields }
func (*LuaSelector) Initialize ¶
func (*LuaSelector) PathDown ¶
func (s *LuaSelector) PathDown(local, remote pan.UDPAddr, fp pan.PathFingerprint, pi pan.PathInterface) error
type State ¶
func (*State) LoadScript ¶
type Stats ¶
type Stats struct { *State // contains filtered or unexported fields }
func (*Stats) AcknowledgedPacket ¶
func (s *Stats) AcknowledgedPacket(local, remote *pan.UDPAddr, level logging.EncryptionLevel, num logging.PacketNumber) error
func (*Stats) BufferedPacket ¶
func (*Stats) ClosedConnection ¶
func (*Stats) DroppedEncryptionLevel ¶
func (*Stats) DroppedKey ¶
func (*Stats) DroppedPacket ¶
func (s *Stats) DroppedPacket(local, remote *pan.UDPAddr, ptype logging.PacketType, size logging.ByteCount, reason logging.PacketDropReason) error
func (*Stats) LossTimerCanceled ¶
func (*Stats) LossTimerExpired ¶
func (*Stats) LostPacket ¶
func (s *Stats) LostPacket(local, remote *pan.UDPAddr, level logging.EncryptionLevel, num logging.PacketNumber, reason logging.PacketLossReason) error
func (*Stats) NegotiatedVersion ¶
func (s *Stats) NegotiatedVersion(local, remote *pan.UDPAddr, chosen logging.VersionNumber, clientVersions, serverVersions []logging.VersionNumber) error
func (*Stats) ReceivedPacket ¶
func (*Stats) ReceivedRetry ¶
func (*Stats) ReceivedTransportParameters ¶
func (*Stats) ReceivedVersionNegotiationPacket ¶
func (*Stats) RestoredTransportParameters ¶
func (*Stats) SentPacket ¶
func (*Stats) SentTransportParameters ¶
func (*Stats) SetLossTimer ¶
func (*Stats) StartedConnection ¶
func (*Stats) TracerForConnection ¶
func (s *Stats) TracerForConnection(tracer_id uint64, p logging.Perspective, odcid logging.ConnectionID) error
func (*Stats) UpdatedCongestionState ¶
func (*Stats) UpdatedKey ¶
func (*Stats) UpdatedKeyFromTLS ¶
func (s *Stats) UpdatedKeyFromTLS(local, remote *pan.UDPAddr, level logging.EncryptionLevel, p logging.Perspective) error