Documentation
¶
Index ¶
- Constants
- func ReadBytes(r io.Reader, length int64) ([]byte, error)
- func SockAddr(ifindex int) syscall.Sockaddr
- func Write(w io.Writer, t uint16, xid uint32, b []byte) error
- func WriteMessage(w io.Writer, msg Message, xid uint32) error
- type Client
- type ClientConnectedCallback
- type Connection
- type EthHdr
- type FFPacket
- type Header
- type Message
Constants ¶
View Source
const (
FFPACKET_ETHTYPE uint16 = 0x0a0a
)
View Source
const HEADER_LEN = 8
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶ added in v0.3.1
type Client struct {
// contains filtered or unexported fields
}
Client
func (*Client) SetRetyTime ¶ added in v0.3.1
func (*Client) Start ¶ added in v0.3.1
func (c *Client) Start(callback ClientConnectedCallback)
type ClientConnectedCallback ¶ added in v0.3.1
type ClientConnectedCallback func(client *Client)
type Connection ¶ added in v0.3.1
type Connection struct {
// contains filtered or unexported fields
}
Connection
func NewConnection ¶ added in v0.3.1
func NewConnection(addr string) *Connection
func (*Connection) Close ¶ added in v0.3.1
func (c *Connection) Close()
func (*Connection) Connect ¶ added in v0.3.1
func (c *Connection) Connect() error
type FFPacket ¶
type FFPacket struct { EthHdr ReId [24]byte Ifname [24]byte // contains filtered or unexported fields }
func NewFFPacket ¶
func NewFFPacket(reId string, hwAddr net.HardwareAddr, ifname string) *FFPacket
type Header ¶
func ParseHeader ¶
Click to show internal directories.
Click to hide internal directories.