Skip to content

Commit

Permalink
Core: the ngx_event_udp.h header file.
Browse files Browse the repository at this point in the history
  • Loading branch information
vlhomutov committed Jan 25, 2022
1 parent 9d7491e commit f780297
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
3 changes: 2 additions & 1 deletion auto/sources
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ EVENT_DEPS="src/event/ngx_event.h \
src/event/ngx_event_timer.h \
src/event/ngx_event_posted.h \
src/event/ngx_event_connect.h \
src/event/ngx_event_pipe.h"
src/event/ngx_event_pipe.h \
src/event/ngx_event_udp.h"

EVENT_SRCS="src/event/ngx_event.c \
src/event/ngx_event_timer.c \
Expand Down
7 changes: 1 addition & 6 deletions src/event/ngx_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -494,12 +494,6 @@ extern ngx_module_t ngx_event_core_module;


void ngx_event_accept(ngx_event_t *ev);
#if !(NGX_WIN32)
void ngx_event_recvmsg(ngx_event_t *ev);
void ngx_udp_rbtree_insert_value(ngx_rbtree_node_t *temp,
ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel);
#endif
void ngx_delete_udp_connection(void *data);
ngx_int_t ngx_trylock_accept_mutex(ngx_cycle_t *cycle);
ngx_int_t ngx_enable_accept_events(ngx_cycle_t *cycle);
u_char *ngx_accept_log_error(ngx_log_t *log, u_char *buf, size_t len);
Expand Down Expand Up @@ -529,6 +523,7 @@ ngx_int_t ngx_send_lowat(ngx_connection_t *c, size_t lowat);

#include <ngx_event_timer.h>
#include <ngx_event_posted.h>
#include <ngx_event_udp.h>

#if (NGX_WIN32)
#include <ngx_iocp_module.h>
Expand Down
24 changes: 24 additions & 0 deletions src/event/ngx_event_udp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

/*
* Copyright (C) Nginx, Inc.
*/


#ifndef _NGX_EVENT_UDP_H_INCLUDED_
#define _NGX_EVENT_UDP_H_INCLUDED_


#include <ngx_config.h>
#include <ngx_core.h>


#if !(NGX_WIN32)
void ngx_event_recvmsg(ngx_event_t *ev);
void ngx_udp_rbtree_insert_value(ngx_rbtree_node_t *temp,
ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel);
#endif

void ngx_delete_udp_connection(void *data);


#endif /* _NGX_EVENT_UDP_H_INCLUDED_ */

0 comments on commit f780297

Please sign in to comment.