File: initializer.cpp

package info (click to toggle)
vdr-plugin-markad 4.2.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,084 kB
  • sloc: cpp: 22,441; python: 613; makefile: 270; sh: 95
file content (16 lines) | stat: -rw-r--r-- 295 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "initializer.h"

#undef PLANES
#include <winsock2.h>  // WSAStartup()
#include <windows.h>   // just to be shure.

w32init::w32init(void) {
  auto wsadata = WSADATA();

  // startup winsock 2.2 (latest)
  WSAStartup(MAKEWORD(2, 2), &wsadata);
}

w32init::~w32init() {
  WSACleanup();
}