![]() |
libzmq master
The Intelligent Transport Layer
|
00001 /* 00002 Copyright (c) 2007-2009 iMatix Corporation 00003 Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file 00004 00005 This file is part of 0MQ. 00006 00007 0MQ is free software; you can redistribute it and/or modify it under 00008 the terms of the GNU Lesser General Public License as published by 00009 the Free Software Foundation; either version 3 of the License, or 00010 (at your option) any later version. 00011 00012 0MQ is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU Lesser General Public License for more details. 00016 00017 You should have received a copy of the GNU Lesser General Public License 00018 along with this program. If not, see <http://www.gnu.org/licenses/>. 00019 */ 00020 00021 #ifndef __ZMQ_FD_HPP_INCLUDED__ 00022 #define __ZMQ_FD_HPP_INCLUDED__ 00023 00024 #include "platform.hpp" 00025 00026 #ifdef ZMQ_HAVE_WINDOWS 00027 #include "windows.hpp" 00028 #endif 00029 00030 namespace zmq 00031 { 00032 #ifdef ZMQ_HAVE_WINDOWS 00033 #if defined _MSC_VER &&_MSC_VER <= 1400 00034 typedef UINT_PTR fd_t; 00035 enum {retired_fd = (fd_t)(~0)}; 00036 #else 00037 typedef SOCKET fd_t; 00038 enum {retired_fd = INVALID_SOCKET}; 00039 #endif 00040 #else 00041 typedef int fd_t; 00042 enum {retired_fd = -1}; 00043 #endif 00044 } 00045 #endif