Mercurial > hg > nginx
comparison src/event/ngx_event_connect.h @ 6707:1c9863f9592e
Modules compatibility: peer.notify.
This callback can be used to notify balancer about various events.
For now, it is only used in nginx-plus.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 29 Sep 2016 18:05:59 +0300 |
parents | e8d4c9e9682a |
children | d200a0fd00b7 |
comparison
equal
deleted
inserted
replaced
6706:829468da49d6 | 6707:1c9863f9592e |
---|---|
23 | 23 |
24 typedef ngx_int_t (*ngx_event_get_peer_pt)(ngx_peer_connection_t *pc, | 24 typedef ngx_int_t (*ngx_event_get_peer_pt)(ngx_peer_connection_t *pc, |
25 void *data); | 25 void *data); |
26 typedef void (*ngx_event_free_peer_pt)(ngx_peer_connection_t *pc, void *data, | 26 typedef void (*ngx_event_free_peer_pt)(ngx_peer_connection_t *pc, void *data, |
27 ngx_uint_t state); | 27 ngx_uint_t state); |
28 typedef void (*ngx_event_notify_peer_pt)(ngx_peer_connection_t *pc, | |
29 void *data, ngx_uint_t type); | |
28 #if (NGX_SSL) | 30 #if (NGX_SSL) |
29 | 31 |
30 typedef ngx_int_t (*ngx_event_set_peer_session_pt)(ngx_peer_connection_t *pc, | 32 typedef ngx_int_t (*ngx_event_set_peer_session_pt)(ngx_peer_connection_t *pc, |
31 void *data); | 33 void *data); |
32 typedef void (*ngx_event_save_peer_session_pt)(ngx_peer_connection_t *pc, | 34 typedef void (*ngx_event_save_peer_session_pt)(ngx_peer_connection_t *pc, |
44 ngx_uint_t tries; | 46 ngx_uint_t tries; |
45 ngx_msec_t start_time; | 47 ngx_msec_t start_time; |
46 | 48 |
47 ngx_event_get_peer_pt get; | 49 ngx_event_get_peer_pt get; |
48 ngx_event_free_peer_pt free; | 50 ngx_event_free_peer_pt free; |
51 ngx_event_notify_peer_pt notify; | |
49 void *data; | 52 void *data; |
50 | 53 |
51 #if (NGX_SSL) | 54 #if (NGX_SSL) |
52 ngx_event_set_peer_session_pt set_session; | 55 ngx_event_set_peer_session_pt set_session; |
53 ngx_event_save_peer_session_pt save_session; | 56 ngx_event_save_peer_session_pt save_session; |