globus_net_manager_context.h
Go to the documentation of this file.
/*
* Copyright 1999-2014 University of Chicago
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef GLOBUS_NET_MANAGER_CONTEXT_H
#define GLOBUS_NET_MANAGER_CONTEXT_H 1
#include "globus_common.h"
#include "globus_net_manager.h"
#include "globus_net_manager_attr.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct globus_i_net_manager_context_s *globus_net_manager_context_t;
globus_result_t
globus_net_manager_context_init(
globus_net_manager_context_t *context,
const globus_net_manager_attr_t *attrs);
void
globus_net_manager_context_destroy(
globus_net_manager_context_t context);
globus_result_t
globus_net_manager_context_pre_listen(
globus_net_manager_context_t context,
const char *task_id,
const char *transport,
const globus_net_manager_attr_t *attr_array,
globus_net_manager_attr_t **attr_array_out);
globus_result_t
globus_net_manager_context_post_listen(
globus_net_manager_context_t context,
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);
globus_result_t
globus_net_manager_context_end_listen(
globus_net_manager_context_t context,
const char *task_id,
const char *transport,
const char *local_contact,
const globus_net_manager_attr_t *attr_array);
globus_result_t
globus_net_manager_context_pre_accept(
globus_net_manager_context_t context,
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);
globus_result_t
globus_net_manager_context_post_accept(
globus_net_manager_context_t context,
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);
globus_result_t
globus_net_manager_context_pre_connect(
globus_net_manager_context_t context,
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);
globus_result_t
globus_net_manager_context_post_connect(
globus_net_manager_context_t context,
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);
globus_result_t
globus_net_manager_context_pre_close(
globus_net_manager_context_t context,
const char *task_id,
const char *transport,
const char *local_contact,
const char *remote_contact,
const globus_net_manager_attr_t *attr_array);
globus_result_t
globus_net_manager_context_post_close(
globus_net_manager_context_t context,
const char *task_id,
const char *transport,
const char *local_contact,
const char *remote_contact,
const globus_net_manager_attr_t *attr_array);
typedef struct globus_i_net_manager_context_s
{
globus_list_t * managers;
} globus_i_net_manager_context_t;
typedef struct globus_i_net_manager_context_entry_s
{
char * name;
char * dll_name;
globus_extension_handle_t ext_handle;
globus_net_manager_t * manager;
globus_net_manager_attr_t * attrs;
} globus_i_net_manager_context_entry_t;
#ifdef __cplusplus
}
#endif
#endif /* #define GLOBUS_NET_MANAGER_CONTEXT_H */
globus_net_manager_context_pre_close
globus_result_t globus_net_manager_context_pre_close(globus_net_manager_context_t context, const char *task_id, const char *transport, const char *local_contact, const char *remote_contact, const globus_net_manager_attr_t *attr_array)
Call Context Pre Close.
Definition: pre_close.c:53
globus_net_manager_s
Net Manager Definition.
Definition: globus_net_manager.h:583
globus_net_manager_context_pre_connect
globus_result_t globus_net_manager_context_pre_connect(globus_net_manager_context_t context, 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)
Call Context Pre Connect.
Definition: pre_connect.c:56
globus_net_manager_context_post_close
globus_result_t globus_net_manager_context_post_close(globus_net_manager_context_t context, const char *task_id, const char *transport, const char *local_contact, const char *remote_contact, const globus_net_manager_attr_t *attr_array)
Call Context Post Close.
Definition: post_close.c:51
globus_net_manager_context_destroy
void globus_net_manager_context_destroy(globus_net_manager_context_t context)
Destroy Context.
Definition: destroy.c:34
globus_net_manager_context_pre_accept
globus_result_t globus_net_manager_context_pre_accept(globus_net_manager_context_t context, 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)
Call Context Pre Accept.
Definition: pre_accept.c:53
globus_net_manager_context_end_listen
globus_result_t globus_net_manager_context_end_listen(globus_net_manager_context_t context, const char *task_id, const char *transport, const char *local_contact, const globus_net_manager_attr_t *attr_array)
Call Context End Listen.
Definition: end_listen.c:50
globus_net_manager_context_post_listen
globus_result_t globus_net_manager_context_post_listen(globus_net_manager_context_t context, 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)
Call Context Post Listen.
Definition: post_listen.c:56
globus_net_manager_attr_s
Net Manager Attributes.
Definition: globus_net_manager_attr.h:45
globus_net_manager_context_t
struct globus_i_net_manager_context_s * globus_net_manager_context_t
Net Manager Context.
Definition: globus_net_manager_context.h:65
globus_net_manager_context_init
globus_result_t globus_net_manager_context_init(globus_net_manager_context_t *context, const globus_net_manager_attr_t *attrs)
Initialize Context.
Definition: init.c:124
globus_net_manager_context_post_accept
globus_result_t globus_net_manager_context_post_accept(globus_net_manager_context_t context, 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)
Call Context Post Accept.
Definition: post_accept.c:58
globus_net_manager_context_post_connect
globus_result_t globus_net_manager_context_post_connect(globus_net_manager_context_t context, 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)
Call Context Post Connect.
Definition: post_connect.c:56
globus_net_manager_attr.h
Globus Network Manager Attributes.
globus_net_manager.h
Globus Net Manager Interface.
globus_net_manager_context_pre_listen
globus_result_t globus_net_manager_context_pre_listen(globus_net_manager_context_t context, const char *task_id, const char *transport, const globus_net_manager_attr_t *attr_array, globus_net_manager_attr_t **attr_array_out)
Call Context Pre Listen.
Definition: pre_listen.c:50