Qt 4.8
Public Functions | Public Variables | List of all members
QWindowsSockInit Class Reference

#include <qnativesocketengine_p.h>

Public Functions

 QWindowsSockInit ()
 
 ~QWindowsSockInit ()
 

Public Variables

int version
 

Detailed Description

Definition at line 179 of file qnativesocketengine_p.h.

Constructors and Destructors

◆ QWindowsSockInit()

QWindowsSockInit::QWindowsSockInit ( )

Definition at line 269 of file qnativesocketengine_win.cpp.

270 : version(0)
271 {
272  //### should we try for 2.2 on all platforms ??
273  WSAData wsadata;
274 
275  // IPv6 requires Winsock v2.0 or better.
276  if (WSAStartup(MAKEWORD(2,0), &wsadata) != 0) {
277  qWarning("QTcpSocketAPI: WinSock v2.0 initialization failed.");
278  } else {
279  version = 0x20;
280  }
281 }
Q_CORE_EXPORT void qWarning(const char *,...)

◆ ~QWindowsSockInit()

QWindowsSockInit::~QWindowsSockInit ( )

Definition at line 283 of file qnativesocketengine_win.cpp.

284 {
285  WSACleanup();
286 }

Properties

◆ version

int QWindowsSockInit::version

Definition at line 184 of file qnativesocketengine_p.h.

Referenced by QWindowsSockInit().


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