rabbitmq-c
0.5.3
C AMQP Client library for RabbitMQ
|
00001 /* vim:set ft=c ts=2 sw=2 sts=2 et cindent: */ 00003 /* 00004 * Portions created by Alan Antonuk are Copyright (c) 2013-2014 Alan Antonuk. 00005 * All Rights Reserved. 00006 * 00007 * Portions created by Michael Steinert are Copyright (c) 2012-2013 Michael 00008 * Steinert. All Rights Reserved. 00009 * 00010 * Permission is hereby granted, free of charge, to any person obtaining a 00011 * copy of this software and associated documentation files (the "Software"), 00012 * to deal in the Software without restriction, including without limitation 00013 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 00014 * and/or sell copies of the Software, and to permit persons to whom the 00015 * Software is furnished to do so, subject to the following conditions: 00016 * 00017 * The above copyright notice and this permission notice shall be included in 00018 * all copies or substantial portions of the Software. 00019 * 00020 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00021 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00022 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00023 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00024 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 00025 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 00026 * DEALINGS IN THE SOFTWARE. 00027 */ 00028 00033 #ifndef AMQP_TCP_SOCKET_H 00034 #define AMQP_TCP_SOCKET_H 00035 00036 #include <amqp.h> 00037 00038 AMQP_BEGIN_DECLS 00039 00049 AMQP_PUBLIC_FUNCTION 00050 amqp_socket_t * 00051 AMQP_CALL 00052 amqp_tcp_socket_new(amqp_connection_state_t state); 00053 00066 AMQP_PUBLIC_FUNCTION 00067 void 00068 AMQP_CALL 00069 amqp_tcp_socket_set_sockfd(amqp_socket_t *self, int sockfd); 00070 00071 AMQP_END_DECLS 00072 00073 #endif /* AMQP_TCP_SOCKET_H */