Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ngx_event_connect.h
Go to the documentation of this file.
1 
2 /*
3  * Copyright (C) Igor Sysoev
4  * Copyright (C) Nginx, Inc.
5  */
6 
7 
8 #ifndef _NGX_EVENT_CONNECT_H_INCLUDED_
9 #define _NGX_EVENT_CONNECT_H_INCLUDED_
10 
11 
12 #include <ngx_config.h>
13 #include <ngx_core.h>
14 #include <ngx_event.h>
15 
16 
17 #define NGX_PEER_KEEPALIVE 1
18 #define NGX_PEER_NEXT 2
19 #define NGX_PEER_FAILED 4
20 
21 
23 
25  void *data);
27  ngx_uint_t state);
28 #if (NGX_SSL)
29 
30 typedef ngx_int_t (*ngx_event_set_peer_session_pt)(ngx_peer_connection_t *pc,
31  void *data);
32 typedef void (*ngx_event_save_peer_session_pt)(ngx_peer_connection_t *pc,
33  void *data);
34 #endif
35 
36 
39 
40  struct sockaddr *sockaddr;
41  socklen_t socklen;
43 
45 
48  void *data;
49 
50 #if (NGX_SSL)
51  ngx_event_set_peer_session_pt set_session;
52  ngx_event_save_peer_session_pt save_session;
53 #endif
54 
55 #if (NGX_THREADS)
56  ngx_atomic_t *lock;
57 #endif
58 
60 
61  int rcvbuf;
62 
64 
65  unsigned cached:1;
66 
67  /* ngx_connection_log_error_e */
68  unsigned log_error:2;
69 };
70 
71 
74 
75 
76 #endif /* _NGX_EVENT_CONNECT_H_INCLUDED_ */