Evo C++ Library v0.5.1
Public Member Functions | Public Attributes | List of all members
SocketAddress Struct Reference

#include <evo/impl/sysio_sock.h>

Inheritance diagram for SocketAddress:
Inheritance graph
[legend]

Detailed Description

Generic socket address (used internally).

Public Member Functions

virtual void set_maxsize ()
 Set addrlen to max size for socket address. More...
 

Public Attributes

struct sockaddr addr
 Generic address structure. More...
 
socklen_t addrlen
 Address length. More...
 

Member Function Documentation

◆ set_maxsize()

virtual void set_maxsize ( )
inlinevirtualinherited

Set addrlen to max size for socket address.

  • Low-level socket functions that store a socket address need to know the max socket address length
  • Derived class must implement this and set the proper max size

Reimplemented in SocketAddressUnix, and SocketAddressIp.

Member Data Documentation

◆ addr

struct sockaddr addr

Generic address structure.

◆ addrlen

socklen_t addrlen
inherited

Address length.


The documentation for this struct was generated from the following file: