globus_xio 6.6
Loading...
Searching...
No Matches
globus_xio_wrapblock.h
1#if !defined(GLOBUS_XIO_WRAPBLOCK_H)
2#define GLOBUS_XIO_WRAPBLOCK_H 1
3
4#include "globus_xio.h"
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef globus_result_t
11(*globus_xio_wrapblock_open_func_t)(
12 const globus_xio_contact_t * contact_info,
13 void * driver_link,
14 void * driver_attr,
15 void ** driver_handle);
16
17typedef globus_result_t
18(*globus_xio_wrapblock_write_func_t)(
19 void * driver_specific_handle,
20 const globus_xio_iovec_t * iovec,
21 int iovec_count,
22 globus_size_t * nbytes);
23
24typedef globus_result_t
25(*globus_xio_wrapblock_read_func_t)(
26 void * driver_specific_handle,
27 const globus_xio_iovec_t * iovec,
28 int iovec_count,
29 globus_size_t * nbytes);
30
31typedef globus_result_t
32(*globus_xio_wrapblock_close_func_t)(
33 void * driver_specific_handle,
34 void * attr);
35
36typedef globus_result_t
37(*globus_xio_wrapblock_accept_func_t)(
38 void * driver_server,
39 void ** out_link);
40
41
42globus_result_t
43globus_xio_wrapblock_init(
44 globus_xio_driver_t driver,
45 globus_xio_wrapblock_open_func_t open,
46 globus_xio_wrapblock_close_func_t close,
47 globus_xio_wrapblock_read_func_t read,
48 globus_xio_wrapblock_write_func_t write,
49 globus_xio_wrapblock_accept_func_t accept);
50
51#ifdef __cplusplus
52}
53#endif
54
55#endif