Efl.Net.Dialer.Udp (class)

Description

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.

I

Since 1.19

Inheritance

Efl.Net.Socket.Udp (class)Efl.Net.Socket.Fd (class)Efl.Loop.Fd (class)Efl.Loop.Consumer (class)Efl.Object (class)

Full hierarchy

Members

address_dial (get, set) protected set [Overridden from Efl.Net.Dialer]

Returns the address given to Efl.Net.Dialer.dial.
const char *efl_net_dialer_address_dial_get(const Eo *obj);
void efl_net_dialer_address_dial_set(Eo *obj, const char *address);


close [Overridden from Efl.Io.Closer]

Closes the Input/Output object.
Eina_Error efl_io_closer_close(Eo *obj);


connected (get, set) protected set [Overridden from Efl.Net.Dialer]

Returns whenever the socket is connected or not.
Eina_Bool efl_net_dialer_connected_get(const Eo *obj);
void efl_net_dialer_connected_set(Eo *obj, Eina_Bool connected);


constructor [Overridden from Efl.Object]

Call the object's constructor.
Efl_Object *efl_constructor(Eo *obj);


destructor [Overridden from Efl.Object]

Call the object's destructor.
void efl_destructor(Eo *obj);


dial [Overridden from Efl.Net.Dialer]

Dials to the remote peer.
Eina_Error efl_net_dialer_dial(Eo *obj, const char *address);


timeout_dial (get, set) [Overridden from Efl.Net.Dialer]

The timeout in seconds to use for dialing/connecting.
double efl_net_dialer_timeout_dial_get(const Eo *obj);
void efl_net_dialer_timeout_dial_set(Eo *obj, double seconds);


Inherited

Efl.Io.Closer.Fd
close_on_destructor (get, set) If true will automatically close() on object destructor.
close_on_exec (get, set) If true will automatically close resources on exec() calls.
protected set closer_fd (get, set) Closer file descriptor
Efl.Io.Reader.Fd
protected set reader_fd (get, set) Reader file descriptor
Efl.Io.Writer.Fd
protected set writer_fd (get, set) Writer file descriptor
Efl.Loop.Consumer
loop (get) The loop to which this object belongs to.
Efl.Loop.Fd
fd_file (get, set) Defines which file descriptor to watch when watching a file.
parent (get, set) The parent of an object.
Efl.Net.Dialer
proxy (get, set) Controls/retrieves if the dialer should use a proxy.
Efl.Net.Socket.Fd
protected set address_local (get, set) The local address, similar to getsockname().
protected set address_remote (get, set) The remote address, similar to getpeername().
protected set can_read (get, set) If true will notify Efl.Io.Reader.read can be called without blocking or failing.
protected set can_write (get, set) If true will notify Efl.Io.Writer.write can be called without blocking or failing.
closed (get, set) If true will notify object was closed.
protected set eos (get, set) If true will notify end of stream.
protected set family (get, set) The address family (AF_*) family of this socket.
finalize Called at the end of efl_add. Should not be called, just overridden.
Efl.Net.Socket.Udp
bind (get, set) Forces binding to a specific address.
cork (get, set) Controls UDP's cork using UDP_CORK
dont_route (get, set) Avoids sent UDP packets being routed by a gateway, limiting them to the local network.
fd (get, set) Defines which file descriptor to watch. If it is a file, use file_fd variant.
multicast_groups_get Returns the multicast groups this server has joined.
multicast_join Joins a multicast group.
multicast_leave Leaves a multicast group.
multicast_loopback (get, set) Controls whenever multicast will loopback packets locally.
multicast_time_to_live (get, set) Controls time to live in number of hops.
next_datagram_size_query Queries the next datagram size.
read Reads data into a pre-allocated buffer.
reuse_address (get, set) Controls address reuse() using SO_REUSEADDR
reuse_port (get, set) Controls port reuse() using SO_REUSEPORT (since Linux 3.9)
write Writes data from a pre-populated buffer.
protected init Initializes the socket to communicate with a given IP address
Efl.Object
allow_parent_unref (get, set) Allow an object to be deleted by unref even if it has a parent.
children_iterator_new Get an iterator on all childrens
comment (get, set) A human readable comment for the object
composite_attach Make an object a composite object of another.
composite_detach Detach a composite object from another object.
composite_part_is Check if an object is part of a composite object.
debug_name_override Build a read-only name for this object used for debugging.
del Unrefs the object and reparents it to NULL.
event_callback_forwarder_add Add an event callback forwarder for an event and an object.
event_callback_forwarder_del Remove an event callback forwarder for an event and an object.
event_callback_stop Stop the current callback call.
event_freeze Freeze events of object.
event_freeze_count (get) Return freeze events of object.
class event_global_freeze Freeze events of object.
class event_global_freeze_count (get) Return freeze events of object.
class event_global_thaw Thaw events of object.
event_thaw Thaw events of object.
finalized (get) True if the object is already finalized, otherwise false.
name (get, set) The name of the object.
name_find Find a child object with the given name and return it.
provider_find Searches upwards in the object tree for a provider which knows the given class/interface.

Events

Inherited

Efl.Io.Closer
closed Notifies closed, when property is marked as true
Efl.Io.Reader
can_read,changed Notifies can_read property changed.
eos Notifies end of stream, when property is marked as true.
Efl.Io.Writer
can_write,changed Notifies can_write property changed.
Efl.Loop.Fd
error Called when a error occurred on the file descriptor
read Called when a read happened on the file descriptor
write Called when a write happened on the file descriptor
Efl.Net.Dialer
connected Notifies the socket is connected to the remote peer.
resolved Notifies Efl.Net.Dialer.address_dial was resolved to Efl.Net.Socket.address_remote.
Efl.Object
callback,add A callback was added.
callback,del A callback was deleted.
del Object is being deleted.
destruct Object has been fully destroyed. It can not be used beyond this point. This event should only serve to clean up any dangling pointer.