Documentation ¶
Index ¶
- Constants
- func DefaultPathSelector(paths []*sciond.PathReplyEntry) *sciond.PathReplyEntry
- func InteractivePathSelector(paths []*sciond.PathReplyEntry) *sciond.PathReplyEntry
- func ParseAddress(addr string) (host string, port int, err error)
- func ParseCompleteAddress(addr string) (host string, port int, err error)
- type Address
- type Connection
- type Listener
- type PathSelector
- type Rotator
- type StaticSelector
Constants ¶
View Source
const ( KEYPATH = "/go/src/github.com/scionproto/scion/gen-certs/tls.key" PEMPATH = "/go/src/github.com/scionproto/scion/gen-certs/tls.pem" )
Variables ¶
This section is empty.
Functions ¶
func DefaultPathSelector ¶
func DefaultPathSelector(paths []*sciond.PathReplyEntry) *sciond.PathReplyEntry
func InteractivePathSelector ¶
func InteractivePathSelector(paths []*sciond.PathReplyEntry) *sciond.PathReplyEntry
Copied from Pingpong sample application: https://github.com/scionproto/scion/blob/8291539e5b23a217cb367bce6da05b71d0fe1d82/go/examples/pingpong/pingpong.go#L419
Types ¶
type Address ¶
type Address struct {
// contains filtered or unexported fields
}
Should be treated immutable
func ConvertAddress ¶
type Connection ¶
type Connection struct { quic.Stream // contains filtered or unexported fields }
func Dial ¶
func Dial(local, remote Address, selector PathSelector) (*Connection, error)
func DialAddr ¶
func DialAddr(localAddr, remoteAddr string, selector PathSelector) (*Connection, error)
func NewSQuicConnection ¶
func NewSQuicConnection(stream quic.Stream, local, remote Address) *Connection
func (*Connection) Close ¶
func (conn *Connection) Close() error
func (*Connection) LocalAddr ¶
func (conn *Connection) LocalAddr() net.Addr
func (*Connection) LocalAddress ¶
func (conn *Connection) LocalAddress() Address
Contains address with readable port etc There should be another way to handle this, together with net.Addr
func (*Connection) RemoteAddr ¶
func (conn *Connection) RemoteAddr() net.Addr
func (*Connection) RemoteAddress ¶
func (conn *Connection) RemoteAddress() Address
type Listener ¶
type Listener struct { Address // contains filtered or unexported fields }
func (*Listener) Accept ¶
func (listener *Listener) Accept() (*Connection, error)
type PathSelector ¶
type PathSelector func([]*sciond.PathReplyEntry) *sciond.PathReplyEntry
type Rotator ¶
func NewRotator ¶
func (*Rotator) GetNumberOfUsedPaths ¶
func (*Rotator) PathSelector ¶
func (r *Rotator) PathSelector(paths []*sciond.PathReplyEntry) *sciond.PathReplyEntry
type StaticSelector ¶
func NewStaticSelector ¶
func NewStaticSelector() *StaticSelector
func (*StaticSelector) PathSelector ¶
func (selector *StaticSelector) PathSelector(paths []*sciond.PathReplyEntry) *sciond.PathReplyEntry
func (*StaticSelector) Reset ¶
func (selector *StaticSelector) Reset()
Click to show internal directories.
Click to hide internal directories.