Documentation ¶
Index ¶
- func NewStdNetBind(bindAddress string) conn.Bind
- type StdNetBind
- func (bind *StdNetBind) BatchSize() int
- func (bind *StdNetBind) Close() error
- func (bind *StdNetBind) Open(uport uint16) ([]conn.ReceiveFunc, uint16, error)
- func (*StdNetBind) ParseEndpoint(s string) (conn.Endpoint, error)
- func (bind *StdNetBind) Send(buffs [][]byte, endpoint conn.Endpoint) error
- func (bind *StdNetBind) SetMark(_ uint32) error
- type StdNetEndpoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStdNetBind ¶
Types ¶
type StdNetBind ¶
type StdNetBind struct {
// contains filtered or unexported fields
}
StdNetBind is meant to be a temporary solution on platforms for which the sticky socket / source caching behavior has not yet been implemented. It uses the Go's net package to implement networking. See LinuxSocketBind for a proper implementation on the Linux platform.
func (*StdNetBind) BatchSize ¶ added in v1.3.0
func (bind *StdNetBind) BatchSize() int
func (*StdNetBind) Close ¶
func (bind *StdNetBind) Close() error
func (*StdNetBind) Open ¶
func (bind *StdNetBind) Open(uport uint16) ([]conn.ReceiveFunc, uint16, error)
func (*StdNetBind) ParseEndpoint ¶
func (*StdNetBind) ParseEndpoint(s string) (conn.Endpoint, error)
func (*StdNetBind) Send ¶
func (bind *StdNetBind) Send(buffs [][]byte, endpoint conn.Endpoint) error
func (*StdNetBind) SetMark ¶
func (bind *StdNetBind) SetMark(_ uint32) error
type StdNetEndpoint ¶
func (StdNetEndpoint) ClearSrc ¶
func (StdNetEndpoint) ClearSrc()
func (StdNetEndpoint) DstIP ¶
func (e StdNetEndpoint) DstIP() netip.Addr
func (StdNetEndpoint) DstToBytes ¶
func (e StdNetEndpoint) DstToBytes() []byte
func (StdNetEndpoint) DstToString ¶
func (e StdNetEndpoint) DstToString() string
func (StdNetEndpoint) SrcIP ¶
func (e StdNetEndpoint) SrcIP() netip.Addr
func (StdNetEndpoint) SrcToString ¶
func (e StdNetEndpoint) SrcToString() string
Click to show internal directories.
Click to hide internal directories.