The Sequence Toolkit
www.sequence-toolkit.com
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
stk_service_group_api.h
Go to the documentation of this file.
1 
6 #ifndef STK_SERVICE_GROUP_API_H
7 #define STK_SERVICE_GROUP_API_H
8 #include "stk_service_group.h"
9 #include "stk_service.h"
10 #include "stk_env.h"
11 #include <sys/types.h>
12 #include <sys/socket.h>
13 #include <arpa/inet.h>
14 #include <netinet/in.h>
15 #include <netinet/tcp.h>
16 
17 /* The service group APIs provide a means to register services as groups.
18  * It is possible for a service to be registered in multiple groups simultaneously
19  */
20 
34 
45 
56 
67 
72 stk_service_t *stk_find_service_in_group_by_name(stk_service_group_t *svc_group,char *name,struct sockaddr_in ip);
73 
79 
86 
92 
98 
104 
109 stk_ret stk_service_group_handle_smartbeat(stk_service_group_t *svc_group,stk_service_id svc_id,stk_smartbeat_t *smartbeat,struct sockaddr_in reporting_ip);
110 
116 #endif