GNet.UdpSocket – gnet-2.0 Reference Manual
Packages
gnet-2.0
GNet
UdpSocket
UdpSocket
UdpSocket.full
UdpSocket.with_port
get_io_channel
get_local_inetaddr
get_ttl
has_packet
receive
send
set_ttl
UdpSocket
Object Hierarchy:
Description:
[
Compact
]
[
CCode
( free_function =
"gnet_udp_socket_delete"
, ref_function =
"gnet_udp_socket_ref"
, unref_function =
"gnet_udp_socket_unref"
) ]
public
class
UdpSocket
Namespace:
GNet
Package:
gnet-2.0
Content:
Creation methods:
public
UdpSocket
()
public
UdpSocket.full
(
InetAddr
iface,
int
port)
public
UdpSocket.with_port
(
int
port)
Methods:
public
IOChannel
get_io_channel
()
public
InetAddr
get_local_inetaddr
()
public
int
get_ttl
()
public
bool
has_packet
()
public
int
receive
(
string
buf,
int
len,
InetAddr
src)
public
int
send
(
string
buf,
int
len,
InetAddr
dest)
public
int
set_ttl
(
int
ttl)