Netlink.Socket – libnl-3.0 Reference Manual
Socket
Object Hierarchy:
Netlink.Socket
Netlink.Socket
Netlink.Socket
Description:
[
Compact
]
[
CCode
( cname =
"struct nl_sock"
, cprefix =
"nl_socket_"
, free_function =
"nl_socket_free"
) ]
public
class
Socket
Namespace:
Netlink
Package:
libnl-3.0
Content:
Creation methods:
public
Socket
()
Methods:
public
int
add_membership
(
int
group)
public
int
add_memberships
(
int
group, ...)
public
int
addr_alloc_cache
(
out
AddrCache
c)
public
int
close
()
public
int
connect
(
int
family)
public
void
disable_auto_ack
()
public
void
disable_msg_peek
()
public
void
disable_seq_check
()
public
int
drop_membership
(
int
group)
public
int
drop_memberships
(
int
group, ...)
public
void
enable_auto_ack
()
public
void
enable_msg_peek
()
public
Callback
get_cb
()
public
int
get_fd
()
public
uint32
get_peer_port
()
public
int
link_alloc_cache
(
int
family,
out
LinkCache
c)
public
int
modify_cb
(
CallbackType
type,
CallbackKind
kind,
MessageCallbackFunc
callback)
public
int
recv
(
out
SockAddrNl
addr,
out
char
[] buf,
out
ucred
cred)
public
int
recv_pktinfo
(
bool
on)
public
int
recvmsgs
(
Callback
cb)
public
int
recvmsgs_default
()
public
int
set_buffer_size
(
int
rxbuf,
int
txbuf)
public
void
set_cb
(
Callback
cb)
public
int
set_nonblocking
()
public
int
set_passcred
(
bool
on)
public
void
set_peer_port
(
uint32
port)
public
uint
use_seq
()
public
int
wait_for_ack
()
2022 vala-language.org