blob: ab34fb0f1410ce33e47da8231a7a21b524510c8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Winsock initialization must happen before any Winsock calls are made. The
// EnsureWinsockInit method will make sure that WSAStartup has been called. If
// the call to WSAStartup caused Winsock to initialize, WSACleanup will be
// called automatically on program shutdown.
#ifndef NET_BASE_WINSOCK_INIT_H_
#define NET_BASE_WINSOCK_INIT_H_
namespace net {
// Make sure that Winsock is initialized, calling WSAStartup if needed.
void EnsureWinsockInit();
} // namespace net
#endif // NET_BASE_WINSOCK_INIT_H_
|