MySQL  8.0.19
Source Code Documentation
server_struct.h
Go to the documentation of this file.
1 /* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License, version 2.0,
5  as published by the Free Software Foundation.
6 
7  This program is also distributed with certain software (including
8  but not limited to OpenSSL) that is licensed under separate terms,
9  as designated in a particular file or component or in included license
10  documentation. The authors of MySQL hereby grant you an additional
11  permission to link the program and your derivative works with the
12  separately licensed software that they have included with MySQL.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License, version 2.0, for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22 
23 #ifndef SERVER_STRUCT_H
24 #define SERVER_STRUCT_H
25 
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 struct srv_buf {
37  char buf[0x10000];
38 };
39 typedef struct srv_buf srv_buf;
40 
41 /* Server definition */
42 struct server {
43  int garbage;
44  int refcnt;
45  char *srv; /* Server name */
46  xcom_port port; /* Port */
47  connection_descriptor con; /* Descriptor for open connection */
48  double active; /* Last activity */
49  double detected; /* Last incoming */
50  channel outgoing; /* Outbound messages */
51  task_env *sender; /* The sender task */
52  task_env *reply_handler; /* The reply task */
54  int invalid;
55 };
56 
57 typedef struct server server;
58 
59 #ifdef __cplusplus
60 }
61 #endif
62 
63 #endif
task.h
server::srv
char * srv
Definition: server_struct.h:45
srv_buf::buf
char buf[0x10000]
Definition: server_struct.h:37
server::detected
double detected
Definition: server_struct.h:49
server::active
double active
Definition: server_struct.h:48
server::con
connection_descriptor con
Definition: server_struct.h:47
server::outgoing
channel outgoing
Definition: server_struct.h:50
server::port
xcom_port port
Definition: server_struct.h:46
xcom_port
unsigned short xcom_port
Definition: xcom_common.h:47
xcom_limits.h
server::refcnt
int refcnt
Definition: server_struct.h:44
server::garbage
int garbage
Definition: server_struct.h:43
server::invalid
int invalid
Definition: server_struct.h:54
server::out_buf
srv_buf out_buf
Definition: server_struct.h:53
srv_buf::n
u_int n
Definition: server_struct.h:36
server::sender
task_env * sender
Definition: server_struct.h:51
task_env
Definition: task.h:236
srv_buf::start
u_int start
Definition: server_struct.h:35
srv_buf
Definition: server_struct.h:34
server::reply_handler
task_env * reply_handler
Definition: server_struct.h:52
xcom_common.h
server
Definition: server_struct.h:42
connection_descriptor
Definition: node_connection.h:48
u_int
__u_int u_int
Definition: types.h:73
channel
Definition: task.h:430