31 typedef struct _CManager *CManager;
38 typedef struct _CMConnection *CMConnection;
48 typedef struct _CMFormat *CMFormat;
53 typedef struct _CMTaskHandle *CMTaskHandle;
81 typedef void (*CMHandlerFunc) (CManager cm,
83 void *message,
void *client_data,
96 typedef void (*CMPollFunc) (CManager cm,
void *client_data);
109 typedef void (*CMCloseHandlerFunc) (CManager cm, CMConnection conn,
123 typedef void (*CMWriteCallbackFunc) (CManager cm, CMConnection conn,
134 extern CManager CManager_create();
143 extern void CManager_close (CManager cm);
153 extern void CMTrace_file_id (
int ID);
169 extern int CMfork_comm_thread (CManager cm);
182 extern int CMlisten (CManager cm);
209 extern int CMlisten_specific (CManager cm, attr_list listen_info);
221 CMget_contact_list (CManager cm);
233 CM_insert_contact_info (CManager cm, attr_list attrs);
247 CMget_specific_contact_list (CManager cm, attr_list attrs);
262 CMcontact_self_check (CManager cm, attr_list attrs);
279 CMget_conn (CManager cm, attr_list contact_list);
297 CMinitiate_conn (CManager cm, attr_list contact_list);
314 CMConnection_close (CMConnection conn);
325 CMConnection_add_reference (CMConnection conn);
338 CMconn_register_close_handler (CMConnection conn,
339 CMCloseHandlerFunc func,
348 CMConnection_get_attrs (CMConnection conn);
358 CMConnection_set_character (CMConnection conn, attr_list attrs);
368 CMget_indexed_conn (CManager cm,
int i);
383 CMregister_format (CManager cm, FMStructDescList format_list);
401 CMregister_simple_format (CManager cm,
char *format_name, FMFieldList field_list,
int struct_size);
425 extern CMFormat CMlookup_format (CManager cm, FMStructDescList format_list);
435 extern FMContext CMget_FMcontext(CManager cm);
450 CMwrite (CMConnection conn, CMFormat format,
void *data);
472 CMwrite_attr (CMConnection conn, CMFormat format,
void *data,
485 CMregister_handler (CMFormat format, CMHandlerFunc handler,
499 CMregister_write_callback (CMConnection conn,
500 CMWriteCallbackFunc handler,
519 CMConnection_write_would_block (CMConnection conn);
538 extern void *CMtake_buffer (CManager cm,
void *data);
549 extern void CMreturn_buffer (CManager cm,
void *data);
551 #include "cm_transport.h"
562 typedef int (*CMNonCMHandler) (CMConnection conn, CMTransport transport,
563 char *buffer,
long length);
585 CMregister_non_CM_message_handler (
int header, CMNonCMHandler handler);
596 extern CMtrans_services
597 CMget_static_trans_services ();
608 CMget_transport_data (CMConnection conn);
621 CMadd_poll (CManager cm, CMPollFunc func,
void *client_data);
643 CMadd_periodic_task (CManager cm,
int period_sec,
int period_usec,
644 CMPollFunc func,
void *client_data);
664 CMadd_delayed_task (CManager cm,
int secs,
int usecs, CMPollFunc func,
673 CMremove_task (CMTaskHandle handle);
688 CMadd_shutdown_task (CManager cm, CMPollFunc func,
void *client_data,
int task_type);
697 #define SHUTDOWN_TASK 1
715 CMadd_periodic (CManager cm,
long period, CMPollFunc func,
725 CMremove_periodic (CMTaskHandle handle);
740 CMsleep (CManager cm,
int secs);
755 CMusleep (CManager cm,
int usecs);
770 void CMpoll_network (CManager cm);
782 void CMrun_network (CManager cm);
792 typedef void (*select_func) (
void *param1,
void*param2);
805 CM_fd_add_select (CManager cm,
int fd, select_func handler_func,
806 void *param1,
void *param2);
828 extern int CMCondition_get (CManager cm, CMConnection dep);
853 extern int CMCondition_wait (CManager cm,
int condition);
866 extern void CMCondition_signal (CManager cm,
int condition);
890 extern void CMCondition_set_client_data (CManager cm,
int condition,
910 extern void *CMCondition_get_client_data (CManager cm,
int condition);
924 extern int CMCondition_has_signaled (CManager cm,
int condition);
937 extern int CMCondition_has_failed (CManager cm,
int condition);
955 extern void* CMrealloc (
void *ptr,
long size);
963 extern void* CMmalloc (
long size);
970 extern void CMfree (
void *ptr);
1040 CMget_self_ip_addr(CManager cm);
1339 int output_index, EVstone target_stone);
1357 EVstone_set_output(CManager cm, EVstone stone,
int output_index, EVstone target_stone);
1385 FMStructDescList incoming_format_list,
1415 EVstone remote_stone);
1444 EVstone remote_stone);
1467 EVstone target_stone);
1489 EVstone target_stone);
1549 EVstone target_stone);
1565 EVstone target_stone);
1676 EVclear_stored(CManager cm, EVstone stone_num, EVaction action_num);
1687 EVsend_stored(CManager cm, EVstone stone_num, EVaction action_num);
1698 EVstore_count(CManager cm, EVstone stone_num, EVaction action_num);
1822 EVsubmit(EVsource source,
void *data, attr_list attrs);
1963 char *action_spec, EVstone out_stone);
2210 EVadd_standard_routines(CManager cm,
char *extern_string,
2211 cod_extern_entry *externs);
2261 void *client_data, attr_list attrs,
2262 int out_count,
int *out_stones);
2273 FMFormat incoming_format);
2317 typedef attr_list (*
CMperf_upcall)(CManager cm,
void *buffer,
long length,
int type, attr_list list);
int EVunfreeze_stone(CManager cm, EVstone stone_id)
EVstone EVcreate_split_action(CManager cm, EVstone *target_list)
EVaction EVassoc_thread_bridge_action(CManager cm, EVstone stone, CManager target_cm, EVstone target_stone)
void EVregister_close_handler(CManager cm, EVStoneCloseHandlerFunc handler, void *client_data)
int EVaction_add_split_target(CManager cm, EVstone stone, EVaction action, EVstone target_stone)
int EVstone_set_output(CManager cm, EVstone stone, int output_index, EVstone target_stone)
EVaction EVassoc_split_action(CManager cm, EVstone stone, EVstone *target_list)
EVstone EVcreate_auto_stone(CManager cm, int period_sec, int period_usec, char *action_spec, EVstone out_stone)
void EVreturn_event_buffer(CManager cm, void *event)
EVaction EVassoc_congestion_action(CManager cm, EVstone stone, char *action_spec, void *client_data)
void EVenable_auto_stone(CManager cm, EVstone stone_num, int period_sec, int period_usec)
void EVset_attr_list(CManager cm, EVstone stone_id, attr_list list)
EVstone EVcreate_store_action(CManager cm, EVstone out_stone, int store_limit)
int EVdrain_stone(CManager cm, EVstone stone_id)
EVaction EVassoc_filter_action(CManager cm, EVstone stone, FMStructDescList incoming_format_list, EVSimpleHandlerFunc handler, EVstone out_stone, void *client_data)
void EVdump_stone(CManager cm, EVstone stone_num)
void EVadd_dll_search_dir(char *path_string)
EVaction EVassoc_immediate_action(CManager cm, EVstone stone, char *action_spec, void *client_data)
void EVclear_stored(CManager cm, EVstone stone_num, EVaction action_num)
char * create_filter_action_spec(FMStructDescList format_list, char *function)
attr_list EVextract_attr_list(CManager cm, EVstone stone_id)
int EVsubmit_or_wait(EVsource source, void *data, attr_list attrs, EVSubmitCallbackFunc cb, void *user_data)
int EVtransfer_events(CManager cm, EVstone src_stone, EVstone dest_stone)
EVaction EVassoc_multi_action(CManager cm, EVstone stone, char *action_spec, void *client_data)
void EVfree_stone(CManager cm, EVstone stone)
int(* EVSimpleHandlerFunc)(CManager cm, void *message, void *client_data, attr_list attrs)
Definition: evpath.h:1102
attr_list CMtest_transport(CMConnection conn, attr_list how)
double CMregressive_probe_bandwidth(CMConnection conn, long size, attr_list attrs)
void EVsubmit_general(EVsource source, void *data, EVFreeFunction free_func, attr_list attrs)
EVstone EVcreate_terminal_action(CManager cm, FMStructDescList format_list, EVSimpleHandlerFunc handler, void *client_data)
int EVsubmit_encoded_or_wait(CManager cm, EVstone stone, void *data, int data_len, attr_list attrs, EVSubmitCallbackFunc cb, void *user_data)
EVstone EVcreate_immediate_action(CManager cm, char *action_spec, EVstone *target_list)
EVaction EVassoc_store_action(CManager cm, EVstone stone_num, EVstone out_stone, int store_limit)
int EVstore_is_sending(CManager cm, EVstone stone_num, EVaction action_num)
long CMprobe_latency(CMConnection conn, long msg_size, attr_list attrs)
attr_list(* CMperf_upcall)(CManager cm, void *buffer, long length, int type, attr_list list)
Definition: evpath.h:2317
struct _EVSource * EVsource
Definition: evpath.h:1072
EVstone EVcreate_bridge_action(CManager cm, attr_list contact_list, EVstone remote_stone)
FMFormat EVget_src_ref_format(EVsource source)
EVaction EVassoc_bridge_action(CManager cm, EVstone stone, attr_list contact_list, EVstone remote_stone)
char * create_multityped_action_spec(FMStructDescList *input_format_lists, char *function)
void EVstone_add_split_target(CManager cm, EVstone stone, EVstone target_stone)
void EVsubmit(EVsource source, void *data, attr_list attrs)
void(* EVStoneCloseHandlerFunc)(CManager cm, CMConnection conn, int stone, void *client_data)
Definition: evpath.h:1137
void(* EVFreeFunction)(void *event_data, void *client_data)
Definition: evpath.h:1778
char * create_transform_action_spec(FMStructDescList format_list, FMStructDescList out_format_list, char *function)
EVsource EVcreate_submit_handle(CManager cm, EVstone stone, FMStructDescList data_format)
void EVsend_stored(CManager cm, EVstone stone_num, EVaction action_num)
void EVaction_remove_split_target(CManager cm, EVstone stone, EVaction action, EVstone target_stone)
void EVstore_start_send(CManager cm, EVstone stone_num, EVaction action_num)
void EVfree_source(EVsource source)
int EVaction_set_output(CManager cm, EVstone stone, EVaction action, int output_index, EVstone target_stone)
EVsource EVcreate_submit_handle_free(CManager cm, EVstone stone, FMStructDescList data_format, EVFreeFunction free_func, void *client_data)
int EVfreeze_stone(CManager cm, EVstone stone_id)
double CMprobe_bandwidth(CMConnection conn, long size, attr_list attrs)
int EVstore_count(CManager cm, EVstone stone_num, EVaction action_num)
void EVstall_stone(CManager cm, EVstone stone_id)
void EVadd_standard_structs(CManager cm, FMStructDescList *lists)
void EVsubmit_encoded(CManager cm, EVstone stone, void *data, int data_len, attr_list attrs)
void EVassoc_conversion_action(CManager cm, int stone_id, int stage, FMFormat target_format, FMFormat incoming_format)
long length
Definition: evpath.h:60
void * buffer
Definition: evpath.h:61
void EVunstall_stone(CManager cm, EVstone stone_id)
int(* EVRawHandlerFunc)(CManager cm, void *message, int msg_len, void *client_data, attr_list attrs)
Definition: evpath.h:1122
void(* EVSubmitCallbackFunc)(CManager cm, EVstone target, void *client_data)
Definition: evpath.h:1083
EVstone EVcreate_thread_bridge_action(CManager cm, CManager target_cm, EVstone target_stone)
void EVset_store_limit(CManager cm, EVstone stone_num, EVaction action_num, int store_limit)
EVstone EVexecuting_stone(CManager cm)
int EVdestroy_stone(CManager cm, EVstone stone_id)
EVstone EValloc_stone(CManager cm)
EVevent_list EVextract_stone_events(CManager cm, EVstone stone_id)
void CMinstall_perf_upcall(CManager cm, CMperf_upcall upcall)
char * create_router_action_spec(FMStructDescList format_list, char *function)
EVaction EVassoc_raw_terminal_action(CManager cm, EVstone stone, EVRawHandlerFunc handler, void *client_data)
int EVstone
Definition: evpath.h:1046
void EVstone_remove_split_target(CManager cm, EVstone stone, EVstone target_stone)
int EVaction
Definition: evpath.h:1063
EVstone EVcreate_stone_action(CManager cm, char *action_spec)
int EVtake_event_buffer(CManager cm, void *event)
EVaction EVassoc_terminal_action(CManager cm, EVstone stone, FMStructDescList format_list, EVSimpleHandlerFunc handler, void *client_data)
int(* EVImmediateHandlerFunc)(CManager cm, struct _event_item *event, void *client_data, attr_list attrs, int out_count, int *out_stones)
Definition: evpath.h:2260