Open Lighting Architecture
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Enumerations | Functions
ola::network Namespace Reference

Detailed Description

Code for network communication.

Classes

class  PosixInterfacePicker
class  WindowsInterfacePicker
class  AdvancedTCPConnector
class  HealthCheckedConnection
class  Interface
class  InterfaceBuilder
class  InterfacePicker
class  IPV4Address
class  UDPSocketInterface
class  UDPSocket
class  SocketAddress
class  IPV4SocketAddress
class  GenericSocketAddress
class  SocketCloser
class  TCPConnector
class  TCPSocket
class  TCPAcceptingSocket
class  TCPSocketFactoryInterface
class  GenericTCPSocketFactory

Typedefs

typedef
GenericTCPSocketFactory
< TCPSocket
TCPSocketFactory

Enumerations

enum  { MAC_LENGTH = 6 }

Functions

bool StringToAddress (const string &address, struct in_addr &addr)
string AddressToString (const struct in_addr &addr)
std::string HardwareAddressToString (uint8_t hw_address[MAC_LENGTH])
bool IsBigEndian ()
uint8_t NetworkToHost (uint8_t value)
uint16_t NetworkToHost (uint16_t value)
uint32_t NetworkToHost (uint32_t value)
int8_t NetworkToHost (int8_t value)
int16_t NetworkToHost (int16_t value)
int32_t NetworkToHost (int32_t value)
uint8_t HostToNetwork (uint8_t value)
int8_t HostToNetwork (int8_t value)
uint16_t HostToNetwork (uint16_t value)
int16_t HostToNetwork (int16_t value)
uint32_t HostToNetwork (uint32_t value)
int32_t HostToNetwork (int32_t value)
uint8_t HostToLittleEndian (uint8_t value)
int8_t HostToLittleEndian (int8_t value)
uint16_t HostToLittleEndian (uint16_t value)
int16_t HostToLittleEndian (int16_t value)
uint32_t _ByteSwap (uint32_t value)
uint32_t HostToLittleEndian (uint32_t value)
int32_t HostToLittleEndian (int32_t value)
uint8_t LittleEndianToHost (uint8_t value)
int8_t LittleEndianToHost (int8_t value)
uint16_t LittleEndianToHost (uint16_t value)
int16_t LittleEndianToHost (int16_t value)
uint32_t LittleEndianToHost (uint32_t value)
int32_t LittleEndianToHost (int32_t value)
string FullHostname ()
string Hostname ()
GenericSocketAddress GetLocalAddress (int sd)
GenericSocketAddress GetPeerAddress (int sd)
bool StringToAddress (const std::string &address, struct in_addr &addr)

Function Documentation

GenericSocketAddress ola::network::GetLocalAddress ( int  sd)

Wrapper around getsockname(). The caller should check IsValid() on the GenericSocketAddress before using.

GenericSocketAddress ola::network::GetPeerAddress ( int  sd)

Wrapper around getpeername(). The caller should check IsValid() on the GenericSocketAddress before using.

bool ola::network::IsBigEndian ( )

True if we're big endian, false otherwise.