The Sequence Toolkit
www.sequence-toolkit.com |
#include "stk_data_flow.h"
Go to the source code of this file.
Macros | |
#define | stk_udp_create_publisher stk_udp_client_create_data_flow |
Functions | |
stk_data_flow_t * | stk_udp_client_create_data_flow (stk_env_t *env, char *name, stk_uint64 id, stk_options_t *options) |
int | stk_udp_client_fd (stk_data_flow_t *df) |
stk_ret | stk_udp_client_data_flow_id_ip (stk_data_flow_t *df, struct sockaddr *data_flow_id, socklen_t addrlen) |
stk_ret | stk_udp_client_data_flow_serverip (stk_data_flow_t *df, struct sockaddr *data_flow_id, socklen_t addrlen) |
The UDP client module provides Reliable UDP sending sockets to applications. This module implements the data flow interface specified by the Sequence Toolkit. Applications should use the create API defined here, but use the standard destroy/send/receive APIs in stk_data_flow_api.h Applications may only send sequences on data flows.
#define stk_udp_create_publisher stk_udp_client_create_data_flow |
Alias for Publishers
stk_data_flow_t* stk_udp_client_create_data_flow | ( | stk_env_t * | env, |
char * | name, | ||
stk_uint64 | id, | ||
stk_options_t * | options | ||
) |
Create a UDP client (sender) data flow
stk_ret stk_udp_client_data_flow_id_ip | ( | stk_data_flow_t * | df, |
struct sockaddr * | data_flow_id, | ||
socklen_t | addrlen | ||
) |
Get the IP acting as the ID for this data flow.
stk_ret stk_udp_client_data_flow_serverip | ( | stk_data_flow_t * | df, |
struct sockaddr * | data_flow_id, | ||
socklen_t | addrlen | ||
) |
Get the server IP for this data flow.
int stk_udp_client_fd | ( | stk_data_flow_t * | df | ) |
Get the File Descriptor for a data flow. Applications may use this to register with an event processing loop which calls select()/poll() etc.