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

#include <qnlaengine.h>

Public Functions

 QWindowsSockInit2 ()
 
 ~QWindowsSockInit2 ()
 

Public Variables

int version
 

Detailed Description

Definition at line 67 of file qnlaengine.h.

Constructors and Destructors

◆ QWindowsSockInit2()

QWindowsSockInit2::QWindowsSockInit2 ( )

Definition at line 58 of file qnlaengine.cpp.

59 : version(0)
60 {
61  //### should we try for 2.2 on all platforms ??
62  WSAData wsadata;
63 
64  // IPv6 requires Winsock v2.0 or better.
65  if (WSAStartup(MAKEWORD(2,0), &wsadata) != 0) {
66  qWarning("QBearerManagementAPI: WinSock v2.0 initialization failed.");
67  } else {
68  version = 0x20;
69  }
70 }
Q_CORE_EXPORT void qWarning(const char *,...)

◆ ~QWindowsSockInit2()

QWindowsSockInit2::~QWindowsSockInit2 ( )

Definition at line 72 of file qnlaengine.cpp.

73 {
74  WSACleanup();
75 }

Properties

◆ version

int QWindowsSockInit2::version

Definition at line 72 of file qnlaengine.h.

Referenced by QWindowsSockInit2().


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