2019-02-14 08:37:02 -08:00
|
|
|
class @beta Efl.Net.Server_Udp extends Efl.Net.Server_Ip {
|
2016-10-21 08:24:02 -07:00
|
|
|
[[A UDP server.
|
|
|
|
]]
|
|
|
|
|
|
|
|
methods {
|
2016-10-22 06:46:19 -07:00
|
|
|
@property dont_route {
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
[[Avoids sent UDP packets being routed by a gateway, limiting them to the local network.
|
2016-10-22 06:46:19 -07:00
|
|
|
|
|
|
|
This will use SO_DONTROUTE option to avoid gateways
|
2017-12-20 09:30:29 -08:00
|
|
|
routing sent packets to outside the local network. It's
|
|
|
|
useful for some protocols that only want the local area to
|
2016-10-22 06:46:19 -07:00
|
|
|
be affected.
|
|
|
|
]]
|
|
|
|
get { }
|
|
|
|
set {
|
|
|
|
return: bool (false); [[$true on success]]
|
|
|
|
}
|
|
|
|
values {
|
2016-11-07 06:58:54 -08:00
|
|
|
dont_route: bool; [[If $true limit packets to the local network, $false otherwise]]
|
2016-10-22 06:46:19 -07:00
|
|
|
}
|
|
|
|
}
|
2016-10-25 05:03:34 -07:00
|
|
|
|
|
|
|
multicast_join {
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
[[Joins a multicast group.
|
2016-10-25 05:03:34 -07:00
|
|
|
|
|
|
|
The multicast address should be in the format:
|
|
|
|
|
2016-10-25 06:54:46 -07:00
|
|
|
IP\@INTERFACE
|
2016-10-25 05:03:34 -07:00
|
|
|
|
|
|
|
With '\@INTERFACE' being optional, such as:
|
|
|
|
|
|
|
|
224.0.0.1 - use any interface (ie: 0.0.0.0)
|
|
|
|
224.0.0.1@0.0.0.0
|
|
|
|
224.0.0.1@192.168.0.1 - use the interface assigned to 192.168.0.1
|
|
|
|
ff02::1@0 - use any interface
|
|
|
|
ff02::1@1 - use loopback interface (idx=1)
|
|
|
|
]]
|
|
|
|
params {
|
2019-05-26 08:25:15 -07:00
|
|
|
address: string; [[Multicast group address]]
|
2016-10-25 05:03:34 -07:00
|
|
|
}
|
2016-11-11 06:35:18 -08:00
|
|
|
return: Eina.Error; [[0 on success, error code otherwise]]
|
2016-10-25 05:03:34 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
multicast_leave {
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
[[Leaves a multicast group.
|
2016-10-25 05:03:34 -07:00
|
|
|
|
|
|
|
This reverses the effect of @.multicast_join.
|
|
|
|
]]
|
|
|
|
params {
|
2019-05-26 08:25:15 -07:00
|
|
|
address: string; [[Multicast group address]]
|
2016-10-25 05:03:34 -07:00
|
|
|
}
|
2016-11-11 06:35:18 -08:00
|
|
|
return: Eina.Error; [[0 on success, error code otherwise]]
|
2016-10-25 05:03:34 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
multicast_groups_get {
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
[[Returns the multicast groups this server has joined.
|
2016-10-25 05:03:34 -07:00
|
|
|
|
|
|
|
The iterator is only valid until a new group is joined
|
|
|
|
or left using @.multicast_join or @.multicast_leave.
|
|
|
|
]]
|
2017-09-15 07:51:37 -07:00
|
|
|
return: iterator<string> @owned; [[List of multicast groups]]
|
2016-10-25 05:03:34 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
@property multicast_time_to_live {
|
|
|
|
[[Controls time to live in number of hops.
|
|
|
|
|
|
|
|
If 1 (default), packets are only delivered to the local network.
|
|
|
|
]]
|
|
|
|
get { }
|
|
|
|
set {
|
|
|
|
return: Eina.Error; [[0 on success, error code otherwise]]
|
|
|
|
}
|
|
|
|
values {
|
2016-11-18 03:35:02 -08:00
|
|
|
ttl: uint8; [[Time to live]]
|
2016-10-25 05:03:34 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@property multicast_loopback {
|
|
|
|
[[Controls whenever multicast will loopback packets locally.
|
|
|
|
|
|
|
|
If $false, then packets won't be looped back locally,
|
|
|
|
just delivered for remote peers.
|
|
|
|
]]
|
|
|
|
get { }
|
|
|
|
set {
|
|
|
|
return: Eina.Error; [[0 on success, error code otherwise]]
|
|
|
|
}
|
|
|
|
values {
|
2016-11-07 06:58:54 -08:00
|
|
|
loopback: bool; [[$true when multicast packets are looped back, $false otherwise]]
|
2016-10-25 05:03:34 -07:00
|
|
|
}
|
|
|
|
}
|
2016-10-21 08:24:02 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
implements {
|
|
|
|
Efl.Object.constructor;
|
|
|
|
Efl.Object.destructor;
|
|
|
|
Efl.Net.Server.serve;
|
2018-04-13 01:54:41 -07:00
|
|
|
Efl.Net.Server_Fd.process_incoming_data;
|
|
|
|
Efl.Net.Server_Fd.socket_activate;
|
2019-01-28 09:11:48 -08:00
|
|
|
//These functions are not used, udp emits the there defined events from its internals
|
|
|
|
@empty Efl.Net.Server_Fd.client_add;
|
|
|
|
@empty Efl.Net.Server_Fd.client_reject;
|
2016-10-21 08:24:02 -07:00
|
|
|
}
|
|
|
|
}
|