OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::AsioBoundSocket::Socket Class Reference

#include <asioboundsock.hpp>

Inheritance diagram for openvpn::AsioBoundSocket::Socket:
[legend]
Collaboration diagram for openvpn::AsioBoundSocket::Socket:
[legend]

Classes

class  Proto
 

Public Member Functions

 Socket (openvpn_io::io_context &io_context)
 
void bind_local (const IP::Addr &addr, const unsigned short port=0)
 
std::string to_string () const
 

Protected Member Functions

virtual void async_connect_post_open (const protocol_type &protocol, openvpn_io::error_code &ec) override
 

Private Attributes

Proto< IPv4::Addrv4
 
Proto< IPv6::Addrv6
 

Detailed Description

Definition at line 28 of file asioboundsock.hpp.

Constructor & Destructor Documentation

◆ Socket()

openvpn::AsioBoundSocket::Socket::Socket ( openvpn_io::io_context &  io_context)
inlineexplicit

Definition at line 31 of file asioboundsock.hpp.

Member Function Documentation

◆ async_connect_post_open()

virtual void openvpn::AsioBoundSocket::Socket::async_connect_post_open ( const protocol_type &  protocol,
openvpn_io::error_code &  ec 
)
inlineoverrideprotectedvirtual

Definition at line 128 of file asioboundsock.hpp.

◆ bind_local()

void openvpn::AsioBoundSocket::Socket::bind_local ( const IP::Addr addr,
const unsigned short  port = 0 
)
inline

Definition at line 38 of file asioboundsock.hpp.

◆ to_string()

std::string openvpn::AsioBoundSocket::Socket::to_string ( ) const
inline

Definition at line 53 of file asioboundsock.hpp.

Member Data Documentation

◆ v4

Proto<IPv4::Addr> openvpn::AsioBoundSocket::Socket::v4
private

Definition at line 137 of file asioboundsock.hpp.

◆ v6

Proto<IPv6::Addr> openvpn::AsioBoundSocket::Socket::v6
private

Definition at line 138 of file asioboundsock.hpp.


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