Savarese Software Research Corporation
EventPort.h
Go to the documentation of this file.
1 /*
2  * Copyright 2009 Savarese Software Research Corporation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.savarese.com/software/ApacheLicense-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
22 #ifndef __SSRC_WISP_SERVICE_EVENT_PORT_H
23 #define __SSRC_WISP_SERVICE_EVENT_PORT_H
24 
25 #include <ssrc/wisp-packages.h>
26 
27 #if defined(WISP_HAVE_SYS_EPOLL_H) && defined(WISP_HAVE_EPOLL_CREATE)
28 
29 #include <ssrc/wisp/service/detail/LinuxEventPort.h>
30 
32 
33 typedef NS_SSRC_WISP_SERVICE::detail::LinuxEventPort EventPort;
34 
36 
37 #elif defined(WISP_HAVE_PORT_H) && defined(WISP_HAVE_PORT_CREATE)
38 
39 #include <ssrc/wisp/service/detail/SolarisEventPort.h>
40 
42 
43 typedef NS_SSRC_WISP_SERVICE::detail::SolarisEventPort EventPort;
44 
46 
47 #elif defined(WISP_HAVE_SYS_EVENT_H) && defined(WISP_HAVE_KQUEUE)
48 
49 #include <ssrc/wisp/service/detail/FreeBSDEventPort.h>
50 
52 
53 typedef NS_SSRC_WISP_SERVICE::detail::FreeBSDEventPort EventPort;
54 
56 
57 #endif
58 
59 #endif

Savarese Software Research Corporation
Copyright © 2006-2012 Savarese Software Research Corporation. All rights reserved.