rabbitmq-c  0.5.0
C AMQP Client library for RabbitMQ
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
amqp_tcp_socket.h
Go to the documentation of this file.
1 /* vim:set ft=c ts=2 sw=2 sts=2 et cindent: */
3 /*
4  * Copyright 2012-2013 Michael Steinert
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a
7  * copy of this software and associated documentation files (the "Software"),
8  * to deal in the Software without restriction, including without limitation
9  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  * and/or sell copies of the Software, and to permit persons to whom the
11  * Software is furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in
14  * all copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 
29 #ifndef AMQP_TCP_SOCKET_H
30 #define AMQP_TCP_SOCKET_H
31 
32 #include <amqp.h>
33 
34 AMQP_BEGIN_DECLS
35 
45 AMQP_PUBLIC_FUNCTION
46 amqp_socket_t *
47 AMQP_CALL
49 
62 AMQP_PUBLIC_FUNCTION
63 void
64 AMQP_CALL
65 amqp_tcp_socket_set_sockfd(amqp_socket_t *self, int sockfd);
66 
67 AMQP_END_DECLS
68 
69 #endif /* AMQP_TCP_SOCKET_H */
void amqp_tcp_socket_set_sockfd(amqp_socket_t *self, int sockfd)
Assign an open file descriptor to a socket object.
amqp_socket_t * amqp_tcp_socket_new(amqp_connection_state_t state)
A TCP socket connection.
struct amqp_connection_state_t_ * amqp_connection_state_t
connection state object
Definition: amqp.h:644