21 #ifndef GF_SOCKET_ADDRESS_H 22 #define GF_SOCKET_ADDRESS_H 30 #include <sys/socket.h> 33 #include "Portability.h" 36 #ifndef DOXYGEN_SHOULD_SKIP_THIS 115 using StorageLengthType = int;
117 using StorageLengthType = socklen_t;
122 const sockaddr *getData()
const {
123 return reinterpret_cast<const sockaddr*
>(&m_storage);
126 StorageLengthType getLength()
const {
130 sockaddr_storage m_storage;
131 StorageLengthType m_length;
134 #ifndef DOXYGEN_SHOULD_SKIP_THIS 139 #endif // GF_SOCKET_ADDRESS_H IPv4 (Internet Protocol version 4)
SocketFamily
A socket family.
Definition: SocketAddress.h:50
A TCP listener.
Definition: TcpListener.h:58
Unspecified (either IPv4 or IPv6)
The namespace for gf classes.
Definition: Action.h:35
Allow name resolution for the address.
A TCP socket.
Definition: TcpSocket.h:51
A UDP socket.
Definition: UdpSocket.h:52
IPv6 (Internet Protocol version 6)
Use a numeric form for the address.
A network socket.
Definition: Socket.h:109
SocketAddressFormat
A socket address format.
Definition: SocketAddress.h:62
A socket address.
Definition: SocketAddress.h:78