Back to home page

Nginx displayed by LXR

Source navigation ]
Diff markup ]
Identifier search ]
general search ]
 
 
Version: nginx-1.13.12 ]​[ nginx-1.12.2 ]​

0001 
0002 /*
0003  * Copyright (C) Igor Sysoev
0004  * Copyright (C) Nginx, Inc.
0005  */
0006 
0007 
0008 #ifndef _NGX_CHANNEL_H_INCLUDED_
0009 #define _NGX_CHANNEL_H_INCLUDED_
0010 
0011 
0012 #include <ngx_config.h>
0013 #include <ngx_core.h>
0014 #include <ngx_event.h>
0015 
0016 
0017 typedef struct {
0018     ngx_uint_t  command;
0019     ngx_pid_t   pid;
0020     ngx_int_t   slot;
0021     ngx_fd_t    fd;
0022 } ngx_channel_t;
0023 
0024 
0025 ngx_int_t ngx_write_channel(ngx_socket_t s, ngx_channel_t *ch, size_t size,
0026     ngx_log_t *log);
0027 ngx_int_t ngx_read_channel(ngx_socket_t s, ngx_channel_t *ch, size_t size,
0028     ngx_log_t *log);
0029 ngx_int_t ngx_add_channel_event(ngx_cycle_t *cycle, ngx_fd_t fd,
0030     ngx_int_t event, ngx_event_handler_pt handler);
0031 void ngx_close_channel(ngx_fd_t *fd, ngx_log_t *log);
0032 
0033 
0034 #endif /* _NGX_CHANNEL_H_INCLUDED_ */