libBsdSockets
C++ Wrapper classes to the BSD Socket API
AddressInfoConversions.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (c) 2013, Komodo Does Inc
4 All rights reserved.
5 
6 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
7 
8 Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
9 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
10 Neither the name of the Komodo Does Inc nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12 
13 */
14 
15 #ifndef ADDRESS_INFO_CONVERSIONS_H
16 #define ADDRESS_INFO_CONVERSIONS_H
17 
18 #ifndef ADDRESS_INFO_H
19 #include "AddressInfo.h"
20 #endif // ADDRESS_INFO_H
21 
22 /**
23  * BSD Sockets Package.
24  */
25 namespace BsdSockets {
26 
27  /** Find the low-level constant for domain
28  *
29  * @param domain to get the low-level constant for
30  *
31  * @return the low-level constant for domain
32  */
34 
35  /** Find the SocketDomain for the low-level value constant
36  *
37  * @param value to find the SocketDomain for
38  *
39  * @return the SocketDomain for the low-level value constant
40  */
42 
43  /** Find the low-level constant for type.
44  *
45  * @param type to get the low-level constant for
46  *
47  * @return the low-level constant for type
48  */
50 
51 }
52 
53 #endif // ADDRESS_INFO_CONVERSIONS_H
Namespace of the BsdSockets library.
Definition: Address.cpp:20
int socketDomainToLowLevel(SocketDomain domain)
int socketTypeToLowLevel(SocketType type)
SocketDomain lowLevelToSocketDomain(int lowLevel)