Open Lighting Architecture: ola::network::GenericSocketAddress Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
Public Member Functions | List of all members
ola::network::GenericSocketAddress Class Reference
Network

## Detailed Description

a Generic Socket Address

Wraps a struct sockaddr.

Inheritance diagram for ola::network::GenericSocketAddress:

## Public Member Functions
| GenericSocketAddress (const struct sockaddr &addr)
| GenericSocketAddress (const GenericSocketAddress &other)
bool | IsValid () const
uint16_t | Family () const
GenericSocketAddress & | operator= (const GenericSocketAddress &other)
bool | ToSockAddr (struct sockaddr *addr, unsigned int size) const
std::string | ToString () const
IPV4SocketAddress | V4Addr () const

## Member Function Documentation

## ◆ Family()

uint16_t ola::network::GenericSocketAddress::Family | ( |  | ) | const
| inlinevirtual

Implements ola::network::SocketAddress.

## ◆ ToSockAddr()

bool ola::network::GenericSocketAddress::ToSockAddr | ( | struct sockaddr * | addr,
|  | unsigned int | size ) const
| inlinevirtual

Implements ola::network::SocketAddress.

## ◆ ToString()

string ola::network::GenericSocketAddress::ToString | ( |  | ) | const
| virtual

Implements ola::network::SocketAddress.

## ◆ V4Addr()

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:

- include/ola/network/SocketAddress.h
- common/network/SocketAddress.cpp