| Version: 3.3.1

Public Member Functions | List of all members
wxSocketInitializer Class Reference

`#include <wx/socket.h>`

## Detailed Description

Class initializing sockets in its ctor and shutting them down in its dtor.

This is a simple RAII wrapper around wxSocketBase::Initialize() and wxSocketBase::Shutdown().

Since
  3.3.0

## Public Member Functions
| wxSocketInitializer ()
| Calls wxSocketBase::Initialize(). More...
| ~wxSocketInitializer ()
| Calls wxSocketBase::Shutdown(). More...
| wxSocketInitializer (const wxSocketInitializer &)=delete
| Can't be copied. More...
wxSocketInitializer & | operator= (const wxSocketInitializer &)=delete
| Can't be assigned. More...

## Constructor & Destructor Documentation

## ◆ wxSocketInitializer() [1/2]

wxSocketInitializer::wxSocketInitializer | ( |  | ) |

Calls wxSocketBase::Initialize().

## ◆ ~wxSocketInitializer()

wxSocketInitializer::~wxSocketInitializer | ( |  | ) |

Calls wxSocketBase::Shutdown().

## ◆ wxSocketInitializer() [2/2]

wxSocketInitializer::wxSocketInitializer | ( | const wxSocketInitializer & |  | ) |
| delete

Can't be copied.

## Member Function Documentation

## ◆ operator=()

wxSocketInitializer& wxSocketInitializer::operator= | ( | const wxSocketInitializer & |  | ) |
| delete

Can't be assigned.