![]() |
libzmq master
The Intelligent Transport Layer
|
00001 /* 00002 Copyright (c) 2010-2011 250bpm s.r.o. 00003 Copyright (c) 2007-2009 iMatix Corporation 00004 Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file 00005 00006 This file is part of 0MQ. 00007 00008 0MQ is free software; you can redistribute it and/or modify it under 00009 the terms of the GNU Lesser General Public License as published by 00010 the Free Software Foundation; either version 3 of the License, or 00011 (at your option) any later version. 00012 00013 0MQ is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU Lesser General Public License for more details. 00017 00018 You should have received a copy of the GNU Lesser General Public License 00019 along with this program. If not, see <http://www.gnu.org/licenses/>. 00020 */ 00021 00022 #ifndef __ZMQ_IP_HPP_INCLUDED__ 00023 #define __ZMQ_IP_HPP_INCLUDED__ 00024 00025 #include "fd.hpp" 00026 00027 namespace zmq 00028 { 00029 00030 // Same as socket(2), but allows for transparent tweaking the options. 00031 fd_t open_socket (int domain_, int type_, int protocol_); 00032 00033 // Tunes the supplied TCP socket for the best latency. 00034 void tune_tcp_socket (fd_t s_); 00035 00036 // Sets the socket into non-blocking mode. 00037 void unblock_socket (fd_t s_); 00038 00039 // Enable IPv4-mapping of addresses in case it is disabled by default. 00040 void enable_ipv4_mapping (fd_t s_); 00041 00042 } 00043 00044 #endif