sippy_net

package
v0.0.0-...-1058202 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataPacketReceiver

type DataPacketReceiver func(data []byte, addr *HostPort, server Transport, rtime *sippy_time.MonoTime)

type HostPort

type HostPort struct {
	Host *MyAddress
	Port *MyPort
}

HostPort

func NewHostPort

func NewHostPort(host, port string) *HostPort

func NewHostPortFromAddr

func NewHostPortFromAddr(addr net.Addr) (*HostPort, error)

func (*HostPort) GetCopy

func (self *HostPort) GetCopy() *HostPort

func (*HostPort) ParseIP

func (self *HostPort) ParseIP() net.IP

func (*HostPort) String

func (self *HostPort) String() string

type MyAddress

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

func NewMyAddress

func NewMyAddress(address string) *MyAddress

func NewSystemAddress

func NewSystemAddress(address string) *MyAddress

func (*MyAddress) GetCopy

func (self *MyAddress) GetCopy() *MyAddress

func (*MyAddress) IsSystemDefault

func (self *MyAddress) IsSystemDefault() bool

func (*MyAddress) ParseIP

func (self *MyAddress) ParseIP() net.IP

func (*MyAddress) String

func (self *MyAddress) String() string

type MyPort

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

func NewMyPort

func NewMyPort(port string) *MyPort

func NewSystemPort

func NewSystemPort(port string) *MyPort

func (*MyPort) GetCopy

func (self *MyPort) GetCopy() *MyPort

func (*MyPort) IsSystemDefault

func (self *MyPort) IsSystemDefault() bool

func (*MyPort) String

func (self *MyPort) String() string

type SipTransportFactory

type SipTransportFactory interface {
	NewSipTransport(*HostPort, DataPacketReceiver) (Transport, error)
}

type Transport

type Transport interface {
	Shutdown()
	GetLAddress() *HostPort
	SendTo([]byte, *HostPort)
	SendToWithCb([]byte, *HostPort, func())
}

Jump to

Keyboard shortcuts

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