diff options
Diffstat (limited to 'chromium/net/base/winsock_init.h')
-rw-r--r-- | chromium/net/base/winsock_init.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/chromium/net/base/winsock_init.h b/chromium/net/base/winsock_init.h new file mode 100644 index 00000000000..c33de9dbfbe --- /dev/null +++ b/chromium/net/base/winsock_init.h @@ -0,0 +1,20 @@ +// Copyright (c) 2011 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. + +#ifndef NET_BASE_WINSOCK_INIT_H_ +#define NET_BASE_WINSOCK_INIT_H_ + +#include "net/base/net_export.h" + +namespace net { + +// Make sure that Winsock is initialized, calling WSAStartup if needed. +NET_EXPORT void EnsureWinsockInit(); + +} // namespace net + +#endif // NET_BASE_WINSOCK_INIT_H_ |