1 #if !defined(GFS_GFORK_PLUGIN_H)
2 #define GFS_GFORK_PLUGIN_H 1
20 #include "globus_xio.h"
23 #include "globus_gfork.h"
25 #define GFSGforkError(error_msg, _type) \
27 globus_error_construct_error( \
32 _gfs_gfork_func_name, \
38 #define GFSGForkFuncName(func) static const char * _gfs_gfork_func_name __attribute__((__unused__)) = #func
40 #define GFSGForkFuncName(func) static const char * _gfs_gfork_func_name = #func
44 #define GF_VERSION 'a'
49 #define GF_VERSION_TIMEOUT 'F'
50 #define GF_REGISTRATION_TIMEOUT 600
53 #define GF_VERSION_LEN 1
54 #define GF_HEADER_RESERVE_LEN 5
55 #define GF_MSG_TYPE_LEN 1
57 #define GF_VERSION_NDX 0
58 #define GF_HEADER_RESERVE_NDX (GF_VERSION_NDX+GF_VERSION_LEN)
59 #define GF_MSG_TYPE_NDX (GF_HEADER_RESERVE_NDX+GF_HEADER_RESERVE_LEN)
63 #define GF_DYN_AT_ONCE_LEN (sizeof(uint32_t))
64 #define GF_DYN_TOTAL_LEN (sizeof(uint32_t))
65 #define GF_DYN_ENTRY_COUNT_LEN (sizeof(uint32_t))
66 #define GF_DYN_COOKIE_LEN 32
67 #define GF_DYN_REPO_LEN 108
68 #define GF_DYN_CS_LEN 108
71 #define GF_DYN_AT_ONCE_NDX (GF_MSG_TYPE_NDX+GF_MSG_TYPE_LEN)
72 #define GF_DYN_TOTAL_NDX (GF_DYN_AT_ONCE_NDX+GF_DYN_AT_ONCE_LEN)
73 #define GF_DYN_ENTRY_COUNT_NDX (GF_DYN_TOTAL_NDX+GF_DYN_TOTAL_LEN)
74 #define GF_DYN_COOKIE_NDX (GF_DYN_ENTRY_COUNT_NDX+GF_DYN_ENTRY_COUNT_LEN)
75 #define GF_DYN_REPO_NDX (GF_DYN_COOKIE_NDX+GF_DYN_COOKIE_NDX)
76 #define GF_DYN_CS_NDX (GF_DYN_REPO_NDX+GF_DYN_REPO_LEN)
78 #define GF_DYN_PACKET_LEN (GF_DYN_CS_LEN+GF_DYN_CS_NDX)
81 #define GF_MEM_LIMIT_NDX (GF_MSG_TYPE_NDX+GF_MSG_TYPE_LEN)
82 #define GF_MEM_LIMIT_LEN (sizeof(uint32_t))
84 #define GF_MEM_MSG_LEN (GF_MEM_LIMIT_NDX+GF_MEM_LIMIT_LEN)
87 #define GF_KILL_STRING_NDX (GF_MSG_TYPE_NDX+GF_MSG_TYPE_LEN)
88 #define GF_KILL_STRING_LEN 128
90 #define GF_KILL_MSG_LEN (GF_KILL_STRING_NDX+GF_KILL_STRING_LEN)
93 #define GF_READY_MSG_LEN (GF_MSG_TYPE_NDX+GF_MSG_TYPE_LEN)
96 #define GF_RELEASE_COUNT_NDX (GF_MSG_TYPE_NDX+GF_MSG_TYPE_LEN)
97 #define GF_RELEASE_COUNT_LEN (sizeof(uint32_t))
99 #define GF_RELEASE_MSG_LEN (GF_RELEASE_COUNT_NDX+GF_RELEASE_COUNT_LEN)
101 typedef enum gfs_gfork_msg_type_e
103 GFS_GFORK_MSG_TYPE_DYNBE = 1,
104 GFS_GFORK_MSG_TYPE_KILL,
105 GFS_GFORK_MSG_TYPE_MEM,
106 GFS_GFORK_MSG_TYPE_READY,
107 GFS_GFORK_MSG_TYPE_ACK,
108 GFS_GFORK_MSG_TYPE_NACK,
109 GFS_GFORK_MSG_TYPE_CC,
110 GFS_GFORK_MSG_TYPE_RELEASE,
111 GFS_GFORK_MSG_TYPE_REMOVE_DYNBE
112 } gfs_gfork_msg_type_t;
115 typedef enum gfs_gfork_error_e
117 GFS_GFORK_ERROR_PARAMETER = 1
Header file for XIO TCP Driver.