FACT++  1.0
dna.c File Reference
#include <errno.h>
#include <dim.h>
+ Include dependency graph for dna.c:

Go to the source code of this file.

Classes

struct  PENDING_OPEN
 
struct  WRITE_ITEM
 
struct  WRITE_DATA
 

Macros

#define DIMLIB
 
#define DNA
 
#define READ_HEADER_SIZE   12
 
#define TMOUT_PENDING_CONN_TMOUT   3600
 
#define MAX_TMOUT_PENDING_CONNS   10
 

Functions

 _DIM_PROTO (static void ast_read_h,(int conn_id, int status, int size))
 
 _DIM_PROTO (static void ast_conn_h,(int handle, int svr_conn_id, int protocol))
 
 _DIM_PROTO (static int dna_write_bytes,(int conn_id, void *buffer, int size, int nowait))
 
 _DIM_PROTO (static void release_conn,(int conn_id))
 
 _DIM_PROTO (static void save_node_task,(int conn_id, DNA_NET *buffer))
 
static int is_header (int conn_id)
 
static void read_data (int conn_id)
 
static void ast_read_h (int conn_id, int status, int size)
 
int dna_start_read (int conn_id, int size)
 
static int dna_write_bytes (int conn_id, void *buffer, int size, int nowait)
 
void dna_test_write (int conn_id)
 
static int do_dna_write (int id)
 
int dna_write_nowait (int conn_id, void *buffer, int size)
 
int dna_write (int conn_id, void *buffer, int size)
 
static void ast_conn_h (int handle, int svr_conn_id, int protocol)
 
int dna_init ()
 
int dna_open_server (char *task, void(*read_ast)(), int *protocol, int *port, void(*error_ast)())
 
int dna_get_node_task (int conn_id, char *node, char *task)
 
void dna_set_test_write (int conn_id, int time)
 
void dna_rem_test_write (int conn_id)
 
static int ins_pend_conn (char *node, char *task, int port, SRC_TYPES src_type, int type, time_t last_used)
 
static int find_pend_conn (char *node, char *task, int port, SRC_TYPES src_type, int type)
 
static void rel_pend_conn (int id, int type)
 
int dna_open_client (char *server_node, char *server_task, int port, int server_protocol, void(*read_ast)(), void(*error_ast)(), SRC_TYPES src_type)
 
int dna_close (int conn_id)
 
static void release_conn (int conn_id)
 
void dna_report_error_old (int conn_id, int code, char *routine_name)
 
void dna_report_error (int conn_id, int code, char *routine_name, int severity, int errcode)
 
static void save_node_task (int conn_id, DNA_NET *buffer)
 

Variables

static PENDING_OPEN Pending_conns [MAX_CONNS]
 
static PENDING_OPEN Pending_conns_tmout [MAX_TMOUT_PENDING_CONNS]
 
static int DNA_Initialized = FALSE
 
int Tcpip_max_io_data_write
 
int Tcpip_max_io_data_read