copy wangle back into folly
[folly.git] / folly / wangle / acceptor / SocketOptions.h
1 /*
2  *  Copyright (c) 2015, Facebook, Inc.
3  *  All rights reserved.
4  *
5  *  This source code is licensed under the BSD-style license found in the
6  *  LICENSE file in the root directory of this source tree. An additional grant
7  *  of patent rights can be found in the PATENTS file in the same directory.
8  *
9  */
10 #pragma once
11
12 #include <folly/io/async/AsyncSocket.h>
13
14 namespace folly {
15
16 /**
17  * Returns a copy of the socket options excluding options with the given
18  * level.
19  */
20 AsyncSocket::OptionMap filterIPSocketOptions(
21   const AsyncSocket::OptionMap& allOptions,
22   const int addrFamily);
23
24 }