17 #ifndef GLOBUS_NET_MANAGER_H
18 #define GLOBUS_NET_MANAGER_H 1
32 #ifndef GLOBUS_GLOBAL_DOCUMENT_SET
167 const char *transport,
224 const char *transport,
225 const char *local_contact,
227 char **local_contact_out,
267 const char *transport,
268 const char *local_contact,
317 const char *transport,
318 const char *local_contact,
373 const char *transport,
374 const char *local_contact,
375 const char *remote_contact,
432 const char *transport,
433 const char *remote_contact,
435 char **remote_contact_out,
486 const char *transport,
487 const char *local_contact,
488 const char *remote_contact,
532 const char *transport,
533 const char *local_contact,
534 const char *remote_contact,
577 const char *transport,
578 const char *local_contact,
579 const char *remote_contact,
613 extern globus_extension_registry_t globus_i_net_manager_registry;
614 #define GLOBUS_NET_MANAGER_REGISTRY &globus_i_net_manager_registry
655 #define GLOBUS_NET_MANAGER_MODULE (&globus_i_net_manager_module)
660 GLOBUS_NET_MANAGER_ERROR_PARAMETER,
661 GLOBUS_NET_MANAGER_ERROR_MEMORY,
662 GLOBUS_NET_MANAGER_ERROR_INIT,
663 GLOBUS_NET_MANAGER_ERROR_MANAGER,
664 GLOBUS_NET_MANAGER_ERROR_WRAPPED
665 } globus_net_manager_error_type_t;
671 #define GlobusNetManagerName(func)
682 #define GlobusNetManagerErrorParameter(param_name) \
684 globus_error_construct_error( \
685 GLOBUS_NET_MANAGER_MODULE, \
687 GLOBUS_NET_MANAGER_ERROR_PARAMETER, \
691 "Bad parameter, %s", \
694 #define GlobusNetManagerErrorMemory(mem_name) \
696 globus_error_construct_error( \
697 GLOBUS_NET_MANAGER_MODULE, \
699 GLOBUS_NET_MANAGER_ERROR_MEMORY, \
703 "Memory allocation failed on %s", \
706 #define GlobusNetManagerErrorInit(manager, explain) \
708 globus_error_construct_error( \
709 GLOBUS_NET_MANAGER_MODULE, \
711 GLOBUS_NET_MANAGER_ERROR_INIT, \
715 "An error occurred accessing a module. %s: %s", manager, explain))
717 #define GlobusNetManagerErrorManager(result, manager, explain) \
719 globus_error_construct_error( \
720 GLOBUS_NET_MANAGER_MODULE, \
721 globus_error_get((result)), \
722 GLOBUS_NET_MANAGER_ERROR_MANAGER, \
726 "A network manager (%s) errored in %s.", manager, explain))
728 #define GlobusNetManagerErrorWrapFailed(failed_func, result) \
730 globus_error_construct_error( \
731 GLOBUS_NET_MANAGER_MODULE, \
732 globus_error_get((result)), \
733 GLOBUS_NET_MANAGER_ERROR_WRAPPED, \
740 #define GlobusNetManagerErrorWrapFailedWithMessage(result, format, arg) \
742 globus_error_construct_error( \
743 GLOBUS_NET_MANAGER_MODULE, \
744 globus_error_get((result)), \
745 GLOBUS_NET_MANAGER_ERROR_WRAPPED, \
752 #define GlobusNetManagerErrorWrapFailedWithMessage2(result, format, arg1, arg2) \
754 globus_error_construct_error( \
755 GLOBUS_NET_MANAGER_MODULE, \
756 globus_error_get((result)), \
757 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:607
globus_net_manager_post_close post_close
Definition: globus_net_manager.h:609
globus_net_manager_post_accept post_accept
Definition: globus_net_manager.h:601
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:482
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:220
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:528
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:313
Net Manager Definition.
Definition: globus_net_manager.h:587
globus_net_manager_post_connect post_connect
Definition: globus_net_manager.h:605
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:163
globus_result_t globus_net_manager_unregister(globus_net_manager_t *manager)
Unregister a network manager.
Definition: unregister.c:32
globus_net_manager_post_listen post_listen
Definition: globus_net_manager.h:595
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:263
globus_net_manager_end_listen end_listen
Definition: globus_net_manager.h:597
struct globus_net_manager_s globus_net_manager_t
Net Manager Definition.
globus_net_manager_pre_connect pre_connect
Definition: globus_net_manager.h:603
Net Manager Attributes.
Definition: globus_net_manager_attr.h:46
Headers common to all of Globus.
uint32_t globus_result_t
Definition: globus_types.h:99
const char * name
Definition: globus_net_manager.h:591
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:573
globus_net_manager_pre_accept pre_accept
Definition: globus_net_manager.h:599
globus_net_manager_pre_listen pre_listen
Definition: globus_net_manager.h:593
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:369
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:428
Module Descriptor.
Definition: globus_module.h:71