Documentation ¶
Index ¶
- Constants
- func NewUDPStatsEmitter(udpConns []*Conn) func()
- func ParseIPAndPort(s string) (net.IP, uint16, error)
- type Addr
- type Conn
- func (u *Conn) GetRecvBuffer() (int, error)
- func (u *Conn) GetSendBuffer() (int, error)
- func (u *Conn) ListenOut(r EncReader, lhf LightHouseHandlerFunc, cache *firewall.ConntrackCacheTicker, ...)
- func (u *Conn) LocalAddr() (*Addr, error)
- func (u *Conn) PrepareRawMessages(n int) ([]rawMessage, [][]byte, [][]byte)
- func (u *Conn) ReadMulti(msgs []rawMessage) (int, error)
- func (u *Conn) ReadSingle(msgs []rawMessage) (int, error)
- func (u *Conn) Rebind() error
- func (u *Conn) ReloadConfig(c *config.C)
- func (u *Conn) SetRecvBuffer(n int) error
- func (u *Conn) SetSendBuffer(n int) error
- func (u *Conn) WriteTo(b []byte, addr *Addr) error
- type EncReader
- type EncWriter
- type LightHouseHandlerFunc
Constants ¶
View Source
const MTU = 9001
Variables ¶
This section is empty.
Functions ¶
func NewUDPStatsEmitter ¶
func NewUDPStatsEmitter(udpConns []*Conn) func()
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func NewListener ¶
func (*Conn) GetRecvBuffer ¶
func (*Conn) GetSendBuffer ¶
func (*Conn) ListenOut ¶
func (u *Conn) ListenOut(r EncReader, lhf LightHouseHandlerFunc, cache *firewall.ConntrackCacheTicker, q int)
func (*Conn) PrepareRawMessages ¶
func (*Conn) ReadSingle ¶
func (*Conn) ReloadConfig ¶
func (*Conn) SetRecvBuffer ¶
func (*Conn) SetSendBuffer ¶
type EncWriter ¶
type EncWriter interface {
SendMessageToVpnIp(t header.MessageType, st header.MessageSubType, vpnIp iputil.VpnIp, p, nb, out []byte)
}
Click to show internal directories.
Click to hide internal directories.