quic_simple_server_socket.h 636 B

1234567891011121314151617181920
  1. // Copyright (c) 2019 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. #ifndef NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_SOCKET_H_
  5. #define NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_SOCKET_H_
  6. #include "net/base/ip_endpoint.h"
  7. #include "net/socket/udp_server_socket.h"
  8. namespace net {
  9. // Creates a UDP server socket tuned for use in a QUIC server.
  10. std::unique_ptr<UDPServerSocket> CreateQuicSimpleServerSocket(
  11. const IPEndPoint& address,
  12. IPEndPoint* server_address);
  13. } // namespace net
  14. #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_SOCKET_H_