xref: /aosp_15_r20/external/cronet/net/base/winsock_init.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2011 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Winsock initialization must happen before any Winsock calls are made.  The
6 // EnsureWinsockInit method will make sure that WSAStartup has been called.
7 
8 #ifndef NET_BASE_WINSOCK_INIT_H_
9 #define NET_BASE_WINSOCK_INIT_H_
10 
11 #include "net/base/net_export.h"
12 
13 namespace net {
14 
15 // Make sure that Winsock is initialized, calling WSAStartup if needed.
16 NET_EXPORT void EnsureWinsockInit();
17 
18 }  // namespace net
19 
20 #endif  // NET_BASE_WINSOCK_INIT_H_
21