CUBRID Engine  latest
broker_proxy_conn.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008 Search Solution Corporation
3  * Copyright 2016 CUBRID Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 
20 /*
21  * broker_proxy_conn.h -
22  *
23  */
24 
25 #ifndef _BROKER_PROXY_CONN_H_
26 #define _BROKER_PROXY_CONN_H_
27 
28 #ident "$Id$"
29 
30 #include "porting.h"
31 #include "broker_shm.h"
32 
33 #if !defined(WINDOWS)
34 
36 {
40 };
43 {
45 
46  int proxy_id;
47  int status;
49 };
50 
51 typedef struct t_proxy_conn T_PROXY_CONN;
53 {
56 
58 };
59 
61 
62 extern int broker_set_proxy_fds (fd_set * fds);
63 extern SOCKET broker_get_readable_proxy_conn (fd_set * fds);
64 extern int broker_add_proxy_conn (SOCKET fd);
69 extern int broker_init_proxy_conn (int max_proxy);
70 extern void broker_destroy_proxy_conn (void);
71 #endif /* !WINDOWS */
72 
73 #if defined(WINDOWS)
74 extern int broker_find_available_proxy (T_SHM_PROXY * shm_proxy_p, int ip_addr, T_BROKER_VERSION clt_version);
75 #else /* WINDOWS */
77 #endif /* !WINDOWS */
78 
79 #endif /* _PROXY_PROXY_CONN_H_ */
int broker_set_proxy_fds(fd_set *fds)
int SOCKET
Definition: porting.h:482
int broker_delete_proxy_conn_by_fd(SOCKET fd)
int broker_init_proxy_conn(int max_proxy)
int broker_delete_proxy_conn_by_proxy_id(int proxy_id)
static T_SHM_PROXY * shm_proxy_p
Definition: broker.c:313
T_BROKER_PROXY_CONN_STATUS
void broker_destroy_proxy_conn(void)
int broker_register_proxy_conn(SOCKET fd, int proxy_id)
static SOCKET proxy_sock_fd
Definition: broker.c:306
T_PROXY_CONN_ENT * proxy_conn_ent
SOCKET broker_get_readable_proxy_conn(fd_set *fds)
int broker_add_proxy_conn(SOCKET fd)
T_PROXY_CONN_ENT * next
T_PROXY_CONN broker_Proxy_conn
int T_BROKER_VERSION
Definition: cas_protocol.h:342
SOCKET broker_get_proxy_conn_maxfd(SOCKET proxy_sock_fd)
SOCKET broker_find_available_proxy(T_SHM_PROXY *shm_proxy_p)