Linked pointer for address lists.
More...
#include <socket.h>
Linked pointer for address lists.
This can be used to iterate through the list of a Socket::address object using the linked_pointer method.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 1947 of file socket.h.
◆ linked_pointer() [1/4]
◆ linked_pointer() [2/4]
◆ linked_pointer() [3/4]
◆ linked_pointer() [4/4]
◆ getNext()
Get the next member in linked list.
Do not change who we point to.
- Returns
- next member in list or NULL if end of list.
Definition at line 1114 of file linked.h.
◆ getPrev()
Get the previous member in double linked list.
Do not change who we point to.
- Returns
- previous member in list or NULL if start of list.
Definition at line 1123 of file linked.h.
◆ in()
◆ in6()
◆ is()
◆ is_next()
Test for next member in linked list.
- Returns
- true if there is more members after current one.
Definition at line 1145 of file linked.h.
◆ is_prev()
Test for previous member in double linked list.
- Returns
- true if there is more members before current one.
Definition at line 1153 of file linked.h.
◆ next()
◆ operator bool()
Test if the address list is valid.
- Returns
- true if we have an address list.
Definition at line 2014 of file socket.h.
◆ operator const struct sockaddr *()
Get the full socket address list by casted reference.
- Returns
- addrinfo list we resolved or NULL if none.
Definition at line 1973 of file socket.h.
◆ operator const struct sockaddr_in *()
◆ operator const struct sockaddr_in6 *()
◆ operator sockaddr_struct *()
Return object we point to by casting.
- Returns
- object linked pointer references.
Definition at line 1092 of file linked.h.
◆ operator!()
Test if we have no address list.
- Returns
- true if we have no address list.
Definition at line 2065 of file socket.h.
◆ operator()()
Get socket as expression operator.
Definition at line 2006 of file socket.h.
◆ operator*()
Return the full socket address list by pointer reference.
- Returns
- addrinfo list we resolved or NULL if none.
Definition at line 1981 of file socket.h.
◆ operator++()
Move (iterate) pointer to next member in linked list.
Definition at line 1130 of file linked.h.
◆ operator--()
Move (iterate) pointer to previous member in double linked list.
Definition at line 1137 of file linked.h.
◆ operator->()
Return member from typed object our pointer references.
- Returns
- evaluated member of object we point to.
Definition at line 2057 of file socket.h.
◆ operator=() [1/2]
Assign our pointer from an address list.
- Parameters
-
Definition at line 2022 of file socket.h.
◆ operator=() [2/2]
Assign our pointer from an address list.
- Parameters
-
Definition at line 2031 of file socket.h.
◆ prev()
Move (iterate) pointer to previous member in double linked list.
Definition at line 1099 of file linked.h.
◆ root()
Return pointer to our linked pointer to use as root node of a chain.
- Returns
- our object pointer as a root index.
Definition at line 1181 of file linked.h.
◆ set() [1/2]
Assign our pointer from an address list.
- Parameters
-
Definition at line 2040 of file socket.h.
◆ set() [2/2]
Assign our pointer from an address list.
- Parameters
-
Definition at line 2048 of file socket.h.
The documentation for this class was generated from the following file:
- /home/iurt/rpmbuild/BUILD/ucommon-7.0.1-build/commoncpp-7.0.1/inc/ucommon/socket.h