| * Copyright (C) Igor Sysoev |
| #ifndef _NGX_EVENT_CONNECT_H_INCLUDED_ |
| #define _NGX_EVENT_CONNECT_H_INCLUDED_ |
| #define NGX_PEER_KEEPALIVE 1 |
| #define NGX_PEER_FAILED 4 |
| typedef struct ngx_peer_connection_s ngx_peer_connection_t; |
| typedef ngx_int_t (*ngx_event_get_peer_pt)(ngx_peer_connection_t *pc, |
| typedef void (*ngx_event_free_peer_pt)(ngx_peer_connection_t *pc, void *data, |
| typedef ngx_int_t (*ngx_event_set_peer_session_pt)(ngx_peer_connection_t *pc, |
| typedef void (*ngx_event_save_peer_session_pt)(ngx_peer_connection_t *pc, |
| struct ngx_peer_connection_s { |
| ngx_connection_t *connection; |
| struct sockaddr *sockaddr; |
| ngx_event_get_peer_pt get; |
| ngx_event_free_peer_pt free; |
| ngx_event_set_peer_session_pt set_session; |
| ngx_event_save_peer_session_pt save_session; |
| /* ngx_connection_log_error_e */ |
| ngx_int_t ngx_event_connect_peer(ngx_peer_connection_t *pc); |
| ngx_int_t ngx_event_get_peer(ngx_peer_connection_t *pc, void *data); |
| #endif /* _NGX_EVENT_CONNECT_H_INCLUDED_ */ |