FACT++
1.0
|
#include "dim_common.h"
Go to the source code of this file.
Classes | |
struct | FORMAT_STR |
struct | DNA_NET |
struct | DIC_PACKET |
struct | DIS_PACKET |
struct | DIS_STAMPED_PACKET |
struct | SERVICE_REG |
struct | DIS_DNS_PACKET |
struct | DNS_DIS_PACKET |
struct | SERVICE_REQ |
struct | DIC_DNS_PACKET |
struct | DNS_DIC_PACKET |
struct | DNS_SERV_INFO |
struct | DNS_SERVICE_INFO |
struct | DNS_SERVER_INFO |
struct | DNS_DID |
struct | DNS_CLIENT_INFO |
struct | DNA_HEADER |
struct | DNA_LONG_HEADER |
struct | timer_entry |
struct | DNA_CONNECTION |
struct | NET_CONNECTION |
struct | DIC_CONNECTION |
struct | DNS_CONNECTION |
struct | dic_serv |
struct | dll |
struct | sll |
Macros | |
#define | DIM_VERSION_NUMBER 2015 |
#define | MY_LITTLE_ENDIAN 0x1 |
#define | MY_BIG_ENDIAN 0x2 |
#define | VAX_FLOAT 0x10 |
#define | IEEE_FLOAT 0x20 |
#define | AXP_FLOAT 0x30 |
#define | MY_OS9 0x100 |
#define | IT_IS_FLOAT 0x1000 |
#define | TRUE 1 |
#define | FALSE 0 |
#define | DNS_TASK "DIM_DNS" |
#define | DNS_PORT 2505 /* Name server port */ |
#define | SEEK_PORT 0 /* server should seek a port */ |
#define | MIN_BIOCNT 50 |
#define | DIS_DNS_TMOUT_MIN 5 |
#define | DIS_DNS_TMOUT_MAX 10 |
#define | DIC_DNS_TMOUT_MIN 5 |
#define | DIC_DNS_TMOUT_MAX 10 |
#define | MAX_SERVICE_UNIT 100 |
#define | MAX_REGISTRATION_UNIT 100 |
#define | CONN_BLOCK 256 |
#define | MAX_CONNS 1024 |
#define | ID_BLOCK 512 |
#define | TCP_RCV_BUF_SIZE /*16384*//*32768*/65536 |
#define | TCP_SND_BUF_SIZE /*16384*//*32768*/65536 |
#define | DID_DNS_TMOUT_MIN 5 |
#define | DID_DNS_TMOUT_MAX 10 |
#define | WATCHDOG_TMOUT_MIN 60 |
#define | WATCHDOG_TMOUT_MAX 90 |
#define | MAX_NODE_NAME 40 |
#define | MAX_TASK_NAME 40 |
#define | MAX_NAME 132 |
#define | DECNET 0 /* Decnet as transport layer */ |
#define | TCPIP 1 /* Tcpip as transport layer */ |
#define | BOTH 2 /* Both protocols allowed */ |
#define | STA_DISC (-1) /* Connection lost */ |
#define | STA_DATA 0 /* Data received */ |
#define | STA_CONN 1 /* Connection made */ |
#define | START_PORT_RANGE 5100 /* Lowest port to use */ |
#define | STOP_PORT_RANGE 10000 /* Highest port to use */ |
#define | TEST_TIME_OSK 15 /* Interval to test conn. */ |
#define | TEST_TIME_VMS 30 /* Interval to test conn. */ |
#define | TEST_WRITE_TAG 25 /* DTQ tag for test writes */ |
#define | WRITE_TMOUT 5 /* Interval to wait while writing. */ |
#define | OPN_MAGIC 0xc0dec0de /* Magic value 1st packet */ |
#define | HDR_MAGIC 0xfeadfead /* Magic value in header */ |
#define | LONG_HDR_MAGIC 0xfeadc0de /* Magic value in long header*/ |
#define | TST_MAGIC 0x11131517 /* Magic value, test write */ |
#define | TRP_MAGIC 0x71513111 /* Magic value, test reply */ |
#define | DIC_HEADER (MAX_NAME + 20) |
#define | DIS_HEADER 8 |
#define | DIS_STAMPED_HEADER 32 |
#define | DIS_DNS_HEADER (MAX_NODE_NAME + MAX_TASK_NAME + 28) |
#define | DNS_DIS_HEADER 8 |
#define | DNS_DIC_HEADER (MAX_NODE_NAME + MAX_TASK_NAME + MAX_NAME + 24) |
#define | __CXX_CONST |
#define | SIZEOF_CHAR 1 |
#define | SIZEOF_SHORT 2 |
#define | SIZEOF_LONG 4 |
#define | SIZEOF_FLOAT 4 |
#define | SIZEOF_DOUBLE 8 |
#define | inc_pter(p, i) p = (void *)((char *)p + (i)) |
Typedefs | |
typedef struct timer_entry | TIMR_ENT |
typedef struct dic_serv | DIC_SERVICE |
typedef struct dll | DLL |
typedef struct sll | SLL |
Enumerations | |
enum | DNS_DIS_TYPES { DNS_DIS_REGISTER, DNS_DIS_KILL, DNS_DIS_STOP, DNS_DIS_EXIT, DNS_DIS_SOFT_EXIT } |
enum | CONN_STATE { RD_HDR, RD_DATA, RD_DUMMY } |
enum | SWAP_TYPE { NOSWAP, SWAPS, SWAPL, SWAPD } |
enum | PENDING_STATES { NOT_PENDING, WAITING_DNS_UP, WAITING_DNS_ANSWER, WAITING_SERVER_UP, WAITING_CMND_ANSWER, DELETED } |
Functions | |
_DIM_PROTOE (int dna_start_read,(int conn_id, int size)) | |
_DIM_PROTOE (void dna_test_write,(int conn_id)) | |
_DIM_PROTOE (int dna_write,(int conn_id, __CXX_CONST void *buffer, int size)) | |
_DIM_PROTOE (int dna_open_server,(__CXX_CONST char *task, void(*read_ast)(), int *protocol, int *port, void(*error_ast)())) | |
_DIM_PROTOE (int dna_get_node_task,(int conn_id, char *node, char *task)) | |
_DIM_PROTOE (int dna_open_client,(__CXX_CONST char *server_node, __CXX_CONST char *server_task, int port, int server_protocol, void(*read_ast)(), void(*error_ast)(), SRC_TYPES src_type)) | |
_DIM_PROTOE (int dna_close,(int conn_id)) | |
_DIM_PROTOE (void dna_report_error,(int conn_id, int code, char *routine_name)) | |
_DIM_PROTOE (int tcpip_open_client,(int conn_id, char *node, char *task, int port)) | |
_DIM_PROTOE (int tcpip_open_server,(int conn_id, char *task, int *port)) | |
_DIM_PROTOE (int tcpip_open_connection,(int conn_id, int channel)) | |
_DIM_PROTOE (int tcpip_start_read,(int conn_id, char *buffer, int size, void(*ast_routine)())) | |
_DIM_PROTOE (int tcpip_start_listen,(int conn_id, void(*ast_routine)())) | |
_DIM_PROTOE (int tcpip_write,(int conn_id, char *buffer, int size)) | |
_DIM_PROTOE (void tcpip_get_node_task,(int conn_id, char *node, char *task)) | |
_DIM_PROTOE (int tcpip_failure,(int code)) | |
_DIM_PROTOE (void tcpip_report_error,(int code)) | |
_DIM_PROTOE (int dtq_create,(void)) | |
_DIM_PROTOE (int dtq_delete,(int queue_id)) | |
_DIM_PROTOE (TIMR_ENT *dtq_add_entry,(int queue_id, int time, void(*user_routine)(), dim_long tag)) | |
_DIM_PROTOE (int dtq_clear_entry,(TIMR_ENT *entry)) | |
_DIM_PROTOE (int dtq_rem_entry,(int queue_id, TIMR_ENT *entry)) | |
_DIM_PROTO (void DimDummy,()) | |
_DIM_PROTOE (void conn_arr_create,(SRC_TYPES type)) | |
_DIM_PROTOE (void *arr_increase,(void *conn_ptr, int conn_size, int n_conns)) | |
_DIM_PROTOE (void id_arr_create,()) | |
_DIM_PROTOE (void *id_arr_increase,(void *id_ptr, int id_size, int n_ids)) | |
_DIM_PROTOE (void dll_init,(DLL *head)) | |
_DIM_PROTOE (void dll_insert_queue,(DLL *head, DLL *item)) | |
_DIM_PROTOE (void dll_insert_after,(DLL *after, DLL *item)) | |
_DIM_PROTOE (DLL *dll_search,(DLL *head, char *data, int size)) | |
_DIM_PROTOE (DLL *dll_get_next,(DLL *head, DLL *item)) | |
_DIM_PROTOE (int dll_empty,(DLL *head)) | |
_DIM_PROTOE (void dll_remove,(DLL *item)) | |
_DIM_PROTOE (void sll_init,(SLL *head)) | |
_DIM_PROTOE (int sll_insert_queue,(SLL *head, SLL *item)) | |
_DIM_PROTOE (SLL *sll_search,(SLL *head, char *data, int size)) | |
_DIM_PROTOE (SLL *sll_get_next,(SLL *item)) | |
_DIM_PROTOE (int sll_empty,(SLL *head)) | |
_DIM_PROTOE (SLL *sll_remove_head,(SLL *head)) | |
_DIM_PROTOE (SLL *sll_search_next_remove,(SLL *item, int offset, char *data, int size)) | |
_DIM_PROTOE (int HashFunction,(char *name, int max)) | |
_DIM_PROTOE (int copy_swap_buffer_out,(int format, FORMAT_STR *format_data, void *buff_out, void *buff_in, int size)) | |
_DIM_PROTOE (int copy_swap_buffer_in,(FORMAT_STR *format_data, void *buff_out, void *buff_in, int size)) | |
_DIM_PROTOE (int get_node_name,(char *node_name)) | |
_DIM_PROTOE (int get_dns_port_number,()) | |
_DIM_PROTOE (int get_dns_accepted_domains,(char *domains)) | |
_DIM_PROTOE (int get_dns_accepted_nodes,(char *nodes)) | |
_DIM_PROTO (double _swapd_by_addr,(double *d)) | |
_DIM_PROTO (int _swapl_by_addr,(int *l)) | |
_DIM_PROTO (short _swaps_by_addr,(short *s)) | |
_DIM_PROTO (void _swapd_buffer,(double *dout, double *din, int n)) | |
_DIM_PROTO (void _swapl_buffer,(int *lout, int *lin, int n)) | |
_DIM_PROTO (void _swaps_buffer,(short *sout, short *sin, int n)) | |
Variables | |
DllExp DIM_NOSHARE DNA_CONNECTION * | Dna_conns |
DllExp DIM_NOSHARE NET_CONNECTION * | Net_conns |
DIM_NOSHARE DIC_CONNECTION * | Dic_conns |
DllExp DIM_NOSHARE DNS_CONNECTION * | Dns_conns |
DllExp DIM_NOSHARE int | Curr_N_Conns |