X-Git-Url: https://git.llucax.com/software/posixx.git/blobdiff_plain/0d50a176b9084ac3badd649fd1c122cb48bcdc62..b520c4be27be6897b6d856c7960fa0133952a552:/src/linux/tipc.hpp diff --git a/src/linux/tipc.hpp b/src/linux/tipc.hpp index 873cfbb..69bf4c0 100644 --- a/src/linux/tipc.hpp +++ b/src/linux/tipc.hpp @@ -117,7 +117,6 @@ struct name: tipc_name /** * Port sequence. * - * @see Multicast * @see tipc_name_seq struct from linux/tipc.h. */ struct nameseq: tipc_name_seq @@ -137,34 +136,7 @@ struct nameseq: tipc_name_seq * @param instance Lower and upper bound. */ nameseq(__u32 type, __u32 instance) throw (); -}; -/** - * Multicast port sequence. - * - * It's a port sequence just like nameseq used to simplify the use of the - * sockaddr. - * - * @see nameseq - * @see Estructura tipc_name_seq de linux/tipc.h - */ -struct multicast: tipc_name_seq -{ - /** - * Constructor. - * - * @param type Type of the multicast sequence. - * @param lower Lower bound. - * @param upper Upper bound. - */ - multicast(__u32 type, __u32 lower, __u32 upper) throw (); - /** - * Constructor. - * - * @param type Type of the multicast sequence. - * @param instance Lower and upper bound. - */ - multicast(__u32 type, __u32 instance) throw (); }; /** @@ -193,7 +165,7 @@ enum reason_t * * @see TIPC documentation: 1.4.3 Name Subscriptions */ -enum subcription_t +enum subscr_t { /** * Causes the topology service to generate a event::PUBLISHED event @@ -221,7 +193,7 @@ enum subcription_t * * @see TIPC documentation: 1.4.3 Name Subscriptions */ -struct subscription: tipc_subscr +struct subscr: tipc_subscr { /** * Constructor. @@ -230,10 +202,10 @@ struct subscription: tipc_subscr * @param timeout A subscription timeout value, in ms * (or WAIT_FOREVER). * @param filter An event filter specifying which events are of - * interest to the application (see subscription_t). + * interest to the application (see subscr_t). * @param usr_handle An 8 byte user handle that is application-defined. */ - subscription(nameseq seq, __u32 timeout, __u32 filter, + subscr(nameseq seq, __u32 timeout, __u32 filter, const char* usr_handle = "") throw (); }; @@ -322,14 +294,6 @@ struct sockaddr: sockaddr_tipc */ sockaddr(nameseq nameseq, scope_t scope = ZONE) throw (); - /** - * Constructor using a multicast port name sequence. - * - * @param mcast Multicast port name sequence. - * @param scope Bind scope. - */ - sockaddr(multicast mcast, scope_t scope = ZONE) throw (); - /// Type of TIPC address type_t type() const throw (); @@ -449,24 +413,7 @@ posixx::linux::tipc::nameseq::nameseq(__u32 t, __u32 instance) throw () } inline -posixx::linux::tipc::multicast::multicast(__u32 t, __u32 low, __u32 up) - throw () -{ - type = t; - lower = low; - upper = up; -} - -inline -posixx::linux::tipc::multicast::multicast(__u32 t, __u32 instance) throw () -{ - type = t; - lower = instance; - upper = instance; -} - -inline -posixx::linux::tipc::subscription::subscription(nameseq s, __u32 t, __u32 f, +posixx::linux::tipc::subscr::subscr(nameseq s, __u32 t, __u32 f, const char* uh) throw () { seq = s; @@ -509,15 +456,6 @@ posixx::linux::tipc::sockaddr::sockaddr(nameseq nameseq, scope_t s) throw () addr.nameseq = nameseq; } -inline -posixx::linux::tipc::sockaddr::sockaddr(multicast mcast, scope_t s) throw () -{ - family = AF_TIPC; - addrtype = TIPC_ADDR_MCAST; - scope = s; - addr.nameseq = mcast; -} - inline posixx::linux::tipc::sockaddr::type_t posixx::linux::tipc::sockaddr::type() const throw ()