efl/src/lib/ecore_con/efl_net_dialer_udp.eo

35 lines
1.4 KiB
Plaintext

class @beta Efl.Net.Dialer_Udp extends Efl.Net.Socket_Udp implements Efl.Net.Dialer {
[[Connects to a remote UDP server.
UDP proxies are not supported, not even using SOCKSv5.
In addition to an IP:PORT, the UDP address to dial may be an
IPv4 broadcast (255.255.255.255), 'any ip' 0.0.0.0 (IPv4) '::'
(IPv6) or a multicast of both IPv4 and IPv6, then the group will
be joined automatically.
Any IP (0.0.0.0 or '::') and multicast addresses will allow
incoming packets on @Efl.Io.Reader.read regardless of their
source. If using a regular IP, packets that do not match the
remote peer will be dropped as spurious, returning EAGAIN.
To allow finer control, see:
- @Efl.Net.Socket_Udp.bind: choose the local address to bind.
- @Efl.Net.Socket_Udp.multicast_join: join other multicast groups.
- @Efl.Net.Socket_Udp.multicast_loopback: if packets should be delivered locally or only to remote peers.
- @Efl.Net.Socket_Udp.multicast_time_to_live: how far, in number of hops, the packet should go.
]]
implements {
Efl.Object.constructor;
Efl.Object.invalidate;
Efl.Object.destructor;
Efl.Net.Dialer.dial;
Efl.Net.Dialer.address_dial { get; set; }
Efl.Net.Dialer.connected { get; set; }
Efl.Net.Dialer.timeout_dial { get; set; }
Efl.Io.Closer.close;
}
}