Open Lighting Architecture
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ola::network::GenericSocketAddress Class Reference

Detailed Description

Wraps a struct sockaddr.

Inheritance diagram for ola::network::GenericSocketAddress:
ola::network::SocketAddress

Public Member Functions

 GenericSocketAddress (const struct sockaddr &addr)
bool IsValid () const
uint16_t Family () const
GenericSocketAddressoperator= (const GenericSocketAddress &other)
bool ToSockAddr (struct sockaddr *addr, unsigned int size) const
string ToString () const
IPV4SocketAddress V4Addr () const

Member Function Documentation

IPV4SocketAddress ola::network::GenericSocketAddress::V4Addr ( ) const

Convert the sockaddr to a sockaddr_in. The caller should check that Family() is AF_INET before calling this.


The documentation for this class was generated from the following files: