17 #ifndef GLOBUS_NET_MANAGER_H 18 #define GLOBUS_NET_MANAGER_H 1 32 #ifndef GLOBUS_GLOBAL_DOCUMENT_SET 163 const char *transport,
220 const char *transport,
221 const char *local_contact,
223 char **local_contact_out,
263 const char *transport,
264 const char *local_contact,
313 const char *transport,
314 const char *local_contact,
369 const char *transport,
370 const char *local_contact,
371 const char *remote_contact,
428 const char *transport,
429 const char *remote_contact,
431 char **remote_contact_out,
482 const char *transport,
483 const char *local_contact,
484 const char *remote_contact,
528 const char *transport,
529 const char *local_contact,
530 const char *remote_contact,
573 const char *transport,
574 const char *local_contact,
575 const char *remote_contact,
609 extern globus_extension_registry_t globus_i_net_manager_registry;
610 #define GLOBUS_NET_MANAGER_REGISTRY &globus_i_net_manager_registry 651 #define GLOBUS_NET_MANAGER_MODULE (&globus_i_net_manager_module) 656 GLOBUS_NET_MANAGER_ERROR_PARAMETER,
657 GLOBUS_NET_MANAGER_ERROR_MEMORY,
658 GLOBUS_NET_MANAGER_ERROR_INIT,
659 GLOBUS_NET_MANAGER_ERROR_MANAGER,
660 GLOBUS_NET_MANAGER_ERROR_WRAPPED
661 } globus_net_manager_error_type_t;
667 #define GlobusNetManagerName(func) 678 #define GlobusNetManagerErrorParameter(param_name) \ 680 globus_error_construct_error( \ 681 GLOBUS_NET_MANAGER_MODULE, \ 683 GLOBUS_NET_MANAGER_ERROR_PARAMETER, \ 687 "Bad parameter, %s", \ 690 #define GlobusNetManagerErrorMemory(mem_name) \ 692 globus_error_construct_error( \ 693 GLOBUS_NET_MANAGER_MODULE, \ 695 GLOBUS_NET_MANAGER_ERROR_MEMORY, \ 699 "Memory allocation failed on %s", \ 702 #define GlobusNetManagerErrorInit(manager, explain) \ 704 globus_error_construct_error( \ 705 GLOBUS_NET_MANAGER_MODULE, \ 707 GLOBUS_NET_MANAGER_ERROR_INIT, \ 711 "An error occurred accessing a module. %s: %s", manager, explain)) 713 #define GlobusNetManagerErrorManager(result, manager, explain) \ 715 globus_error_construct_error( \ 716 GLOBUS_NET_MANAGER_MODULE, \ 717 globus_error_get((result)), \ 718 GLOBUS_NET_MANAGER_ERROR_MANAGER, \ 722 "A network manager (%s) errored in %s.", manager, explain)) 724 #define GlobusNetManagerErrorWrapFailed(failed_func, result) \ 726 globus_error_construct_error( \ 727 GLOBUS_NET_MANAGER_MODULE, \ 728 globus_error_get((result)), \ 729 GLOBUS_NET_MANAGER_ERROR_WRAPPED, \ 736 #define GlobusNetManagerErrorWrapFailedWithMessage(result, format, arg) \ 738 globus_error_construct_error( \ 739 GLOBUS_NET_MANAGER_MODULE, \ 740 globus_error_get((result)), \ 741 GLOBUS_NET_MANAGER_ERROR_WRAPPED, \ 748 #define GlobusNetManagerErrorWrapFailedWithMessage2(result, format, arg1, arg2) \ 750 globus_error_construct_error( \ 751 GLOBUS_NET_MANAGER_MODULE, \ 752 globus_error_get((result)), \ 753 GLOBUS_NET_MANAGER_ERROR_WRAPPED, \ globus_result_t globus_net_manager_register(globus_net_manager_t *manager, globus_module_descriptor_t *module)
Register a network manager.
Definition: register.c:34
globus_net_manager_pre_close pre_close
Definition: globus_net_manager.h:603
globus_net_manager_post_close post_close
Definition: globus_net_manager.h:605
globus_net_manager_post_accept post_accept
Definition: globus_net_manager.h:597
globus_result_t(* globus_net_manager_end_listen)(struct globus_net_manager_s *manager, const globus_net_manager_attr_t *manager_attr_array, const char *task_id, const char *transport, const char *local_contact, const globus_net_manager_attr_t *attr_array)
Net Manager End-Listen Function Signature.
Definition: globus_net_manager.h:259
globus_result_t(* globus_net_manager_pre_connect)(struct globus_net_manager_s *manager, const globus_net_manager_attr_t *manager_attr_array, const char *task_id, const char *transport, const char *remote_contact, const globus_net_manager_attr_t *attr_array, char **remote_contact_out, globus_net_manager_attr_t **attr_array_out)
Net Manager Pre-Connect Function Signature.
Definition: globus_net_manager.h:424
Net Manager Definition.
Definition: globus_net_manager.h:583
globus_net_manager_post_connect post_connect
Definition: globus_net_manager.h:601
globus_result_t globus_net_manager_unregister(globus_net_manager_t *manager)
Unregister a network manager.
Definition: unregister.c:32
globus_result_t(* globus_net_manager_post_listen)(struct globus_net_manager_s *manager, const globus_net_manager_attr_t *manager_attr_array, const char *task_id, const char *transport, const char *local_contact, const globus_net_manager_attr_t *attr_array, char **local_contact_out, globus_net_manager_attr_t **attr_array_out)
Net Manager Post-Listen Function Signature.
Definition: globus_net_manager.h:216
globus_net_manager_post_listen post_listen
Definition: globus_net_manager.h:591
globus_net_manager_end_listen end_listen
Definition: globus_net_manager.h:593
struct globus_net_manager_s globus_net_manager_t
Net Manager Definition.
globus_result_t(* globus_net_manager_post_connect)(struct globus_net_manager_s *manager, const globus_net_manager_attr_t *manager_attr_array, const char *task_id, const char *transport, const char *local_contact, const char *remote_contact, const globus_net_manager_attr_t *attr_array, globus_net_manager_attr_t **attr_array_out)
Net Manager Post-Connect Function Signature.
Definition: globus_net_manager.h:478
globus_net_manager_pre_connect pre_connect
Definition: globus_net_manager.h:599
globus_result_t(* globus_net_manager_pre_accept)(struct globus_net_manager_s *manager, const globus_net_manager_attr_t *manager_attr_array, const char *task_id, const char *transport, const char *local_contact, const globus_net_manager_attr_t *attr_array, globus_net_manager_attr_t **attr_array_out)
Net Manager Pre-Accept Function Signature.
Definition: globus_net_manager.h:309
globus_result_t(* globus_net_manager_pre_close)(struct globus_net_manager_s *manager, const globus_net_manager_attr_t *manager_attr_array, const char *task_id, const char *transport, const char *local_contact, const char *remote_contact, const globus_net_manager_attr_t *attr_array)
Net Manager Pre-Close Function Signature.
Definition: globus_net_manager.h:524
Net Manager Attributes.
Definition: globus_net_manager_attr.h:45
globus_result_t(* globus_net_manager_post_close)(struct globus_net_manager_s *manager, const globus_net_manager_attr_t *manager_attr_array, const char *task_id, const char *transport, const char *local_contact, const char *remote_contact, const globus_net_manager_attr_t *attr_array)
Net Manager Post-Close Function Signature.
Definition: globus_net_manager.h:569
Headers common to all of Globus.
globus_result_t(* globus_net_manager_pre_listen)(struct globus_net_manager_s *manager, const globus_net_manager_attr_t *manager_attr_array, const char *task_id, const char *transport, const globus_net_manager_attr_t *attr_array, globus_net_manager_attr_t **attr_array_out)
Net Manager Pre-Listen Function Signature.
Definition: globus_net_manager.h:159
uint32_t globus_result_t
Definition: globus_types.h:99
const char * name
Definition: globus_net_manager.h:587
globus_net_manager_pre_accept pre_accept
Definition: globus_net_manager.h:595
globus_net_manager_pre_listen pre_listen
Definition: globus_net_manager.h:589
Globus Network Manager Attributes.
globus_result_t(* globus_net_manager_post_accept)(struct globus_net_manager_s *manager, const globus_net_manager_attr_t *manager_attr_array, const char *task_id, const char *transport, const char *local_contact, const char *remote_contact, const globus_net_manager_attr_t *attr_array, globus_net_manager_attr_t **attr_array_out)
Net Manager Post-Accept Function Signature.
Definition: globus_net_manager.h:365
Module Descriptor.
Definition: globus_module.h:69