File: globus_xio_wrapblock.h

package info (click to toggle)
globus-xio 6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 8,120 kB
  • sloc: ansic: 46,711; sh: 11,139; perl: 1,598; makefile: 355
file content (55 lines) | stat: -rw-r--r-- 1,673 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#if !defined(GLOBUS_XIO_WRAPBLOCK_H)
#define GLOBUS_XIO_WRAPBLOCK_H 1

#include "globus_xio.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef globus_result_t
(*globus_xio_wrapblock_open_func_t)(
    const globus_xio_contact_t *        contact_info,
    void *                              driver_link,
    void *                              driver_attr,
    void **                             driver_handle);

typedef globus_result_t
(*globus_xio_wrapblock_write_func_t)(
    void *                              driver_specific_handle,
    const globus_xio_iovec_t *          iovec,
    int                                 iovec_count,
    globus_size_t *                     nbytes);

typedef globus_result_t
(*globus_xio_wrapblock_read_func_t)(
    void *                              driver_specific_handle,
    const globus_xio_iovec_t *          iovec,
    int                                 iovec_count,
    globus_size_t *                     nbytes);

typedef globus_result_t
(*globus_xio_wrapblock_close_func_t)(
    void *                              driver_specific_handle,
    void *                              attr);

typedef globus_result_t
(*globus_xio_wrapblock_accept_func_t)(
    void *                              driver_server,
    void **                             out_link);


globus_result_t
globus_xio_wrapblock_init(
    globus_xio_driver_t                 driver,
    globus_xio_wrapblock_open_func_t    open,
    globus_xio_wrapblock_close_func_t   close,
    globus_xio_wrapblock_read_func_t    read,
    globus_xio_wrapblock_write_func_t   write,
    globus_xio_wrapblock_accept_func_t  accept);

#ifdef __cplusplus
}
#endif

#endif