The Sequence Toolkit
www.sequence-toolkit.com
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
include
stk_data_flow_api.h
Go to the documentation of this file.
1
9
#ifndef STK_DATA_FLOW_API_H
10
#define STK_DATA_FLOW_API_H
11
#include "
stk_env.h
"
12
#include "
stk_data_flow.h
"
13
24
stk_data_flow_t
*
stk_alloc_data_flow
(
stk_env_t
*env,
stk_uint16
flow_type,
char
*name,
stk_data_flow_id
id
,
int
extendedsz,
stk_data_flow_module_t
*fptrs,
stk_options_t
*options);
31
void
stk_hold_data_flow
(
stk_data_flow_t
*df);
36
stk_ret
stk_free_data_flow
(
stk_data_flow_t
*df);
42
void
*
stk_data_flow_module_data
(
stk_data_flow_t
*df);
47
int
stk_data_flow_errno
(
stk_data_flow_t
*df);
51
void
stk_set_data_flow_errno
(
stk_data_flow_t
*df,
int
newerrno);
56
stk_env_t
*
stk_env_from_data_flow
(
stk_data_flow_t
*df);
61
stk_data_flow_id
stk_get_data_flow_id
(
stk_data_flow_t
*df);
66
stk_uint16
stk_get_data_flow_type
(
stk_data_flow_t
*df);
71
char
*
stk_data_flow_name
(
stk_data_flow_t
*df);
72
77
stk_ret
stk_destroy_data_flow
(
stk_data_flow_t
*df);
78
84
stk_ret
stk_data_flow_send
(
stk_data_flow_t
*df,
stk_sequence_t
*data_sequence,
stk_uint64
flags);
85
91
stk_sequence_t
*
stk_data_flow_rcv
(
stk_data_flow_t
*df,
stk_sequence_t
*data_sequence,
stk_uint64
flags);
92
98
stk_ret
stk_data_flow_id_ip
(
stk_data_flow_t
*flow,
struct
sockaddr *data_flow_id,socklen_t addrlen);
99
105
stk_ret
stk_data_flow_id_ip_nw
(
stk_data_flow_t
*df,
struct
sockaddr_in *data_flow_id,socklen_t addrlen);
106
111
char
*
stk_data_flow_protocol
(
stk_data_flow_t
*flow);
112
117
stk_ret
stk_data_flow_buffered
(
stk_data_flow_t
*df);
118
124
stk_ret
stk_data_flow_client_ip
(
stk_sequence_t
*seq,
struct
sockaddr_in *client_ip,socklen_t *addrlen);
125
130
stk_ret
stk_data_flow_add_client_ip
(
stk_sequence_t
*seq,
struct
sockaddr_in *client_ip,socklen_t addrlen);
131
136
stk_ret
stk_data_flow_client_protocol
(
stk_sequence_t
*seq,
char
*protocol_ptr,
stk_uint64
*len);
137
142
stk_ret
stk_data_flow_add_client_protocol
(
stk_sequence_t
*seq,
char
*protocol);
143
150
stk_data_flow_t
*
stk_data_flow_process_extended_options
(
stk_env_t
*env,
stk_options_t
*options,
char
*option_name,
stk_create_data_flow_t
create_data_flow);
151
157
void
stk_data_flow_parse_protocol_str
(
stk_protocol_def_t
*def,
char
*str);
158
#endif
Sequence Toolkit
API, Wed Apr 15 2015 22:32:53