24#ifndef NODE_CONNECTION_H
25#define NODE_CONNECTION_H
29#ifndef XCOM_WITHOUT_OPENSSL
35#include <openssl/ssl.h>
42#include "xdr_gen/xcom_vp.h"
49#ifndef XCOM_WITHOUT_OPENSSL
60#ifndef XCOM_WITHOUT_OPENSSL
#define free(A)
Definition: lexyy.cc:915
enum_transport_protocol
Enum that describes the available XCom Communication Stacks.
Definition: network_provider.h:45
con_state
Definition: node_connection.h:44
@ CON_NULL
Definition: node_connection.h:44
@ CON_PROTO
Definition: node_connection.h:44
@ CON_FD
Definition: node_connection.h:44
static void free_connection(connection_descriptor *&con)
Free a connection_descriptor created with new_connection.
Definition: node_connection.h:87
static void set_connected(connection_descriptor *con, con_state val)
Definition: node_connection.h:102
static int proto_done(connection_descriptor *con)
Definition: node_connection.h:98
struct connection_descriptor connection_descriptor
Definition: node_connection.h:58
static int is_connected(connection_descriptor *con)
Definition: node_connection.h:94
static void set_protocol_stack(connection_descriptor *con, enum_transport_protocol val)
Definition: node_connection.h:106
static connection_descriptor * new_connection(int fd, SSL *ssl_fd)
Definition: node_connection.h:61
Definition: node_connection.h:47
xcom_proto x_proto
Definition: node_connection.h:54
enum_transport_protocol protocol_stack
Definition: node_connection.h:55
con_state connected_
Definition: node_connection.h:52
int fd
Definition: node_connection.h:48
SSL * ssl_fd
Definition: node_connection.h:50
unsigned int snd_tag
Definition: node_connection.h:53
static void * xcom_calloc(size_t nmemb, size_t size)
Definition: xcom_memory.h:54