winsock_init.h 610 B

1234567891011121314151617181920
  1. // Copyright (c) 2011 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // Winsock initialization must happen before any Winsock calls are made. The
  5. // EnsureWinsockInit method will make sure that WSAStartup has been called.
  6. #ifndef NET_BASE_WINSOCK_INIT_H_
  7. #define NET_BASE_WINSOCK_INIT_H_
  8. #include "net/base/net_export.h"
  9. namespace net {
  10. // Make sure that Winsock is initialized, calling WSAStartup if needed.
  11. NET_EXPORT void EnsureWinsockInit();
  12. } // namespace net
  13. #endif // NET_BASE_WINSOCK_INIT_H_