Documentation ¶
Index ¶
- type Connection
- func (t *Connection) Close() error
- func (t *Connection) Connect() error
- func (t *Connection) HandleFunc() func([]byte) error
- func (t *Connection) ListenAndServe() error
- func (t *Connection) Read() ([]byte, error)
- func (t *Connection) SetHandleFunc(fn func([]byte) error)
- func (t *Connection) SocketID() int
- func (t *Connection) Write(message []byte) error
- type ConnectionType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func GetNetlinkSocket ¶
func GetNetlinkSocket(socketid int, connectiontype ConnectionType) Connection
func (*Connection) Close ¶
func (t *Connection) Close() error
func (*Connection) Connect ¶
func (t *Connection) Connect() error
func (*Connection) HandleFunc ¶
func (t *Connection) HandleFunc() func([]byte) error
func (*Connection) ListenAndServe ¶
func (t *Connection) ListenAndServe() error
func (*Connection) Read ¶
func (t *Connection) Read() ([]byte, error)
func (*Connection) SetHandleFunc ¶
func (t *Connection) SetHandleFunc(fn func([]byte) error)
func (*Connection) SocketID ¶
func (t *Connection) SocketID() int
func (*Connection) Write ¶
func (t *Connection) Write(message []byte) error
type ConnectionType ¶
type ConnectionType int
const ( Unicast ConnectionType = 0 Broadcast ConnectionType = 1 )
Click to show internal directories.
Click to hide internal directories.