summaryrefslogtreecommitdiffhomepage
path: root/src/event/ngx_event_udp.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-05-14Common tree insert function for QUIC and UDP connections.Roman Arutyunyan1-0/+1
Previously, ngx_udp_rbtree_insert_value() was used for plain UDP and ngx_quic_rbtree_insert_value() was used for QUIC. Because of this it was impossible to initialize connection tree in ngx_create_listening() since this function is not aware what kind of listening it creates. Now ngx_udp_rbtree_insert_value() is used for both QUIC and UDP. To make is possible, a generic key field is added to ngx_udp_connection_t. It keeps client address for UDP and connection ID for QUIC.
2022-04-20QUIC: separate UDP framework for QUIC.Roman Arutyunyan1-14/+3
Previously, QUIC used the existing UDP framework, which was created for UDP in Stream. However the way QUIC connections are created and looked up is different from the way UDP connections in Stream are created and looked up. Now these two implementations are decoupled.
2022-02-14Merged with the default branch.Sergey Kandaurov1-1/+1
2022-01-25Core: added function for local source address cmsg.Vladimir Homutov1-0/+2
2022-01-25Core: made the ngx_sendmsg() function non-static.Vladimir Homutov1-0/+32
The NGX_HAVE_ADDRINFO_CMSG macro is defined when at least one of methods to deal with corresponding control message is available.
2022-01-25Core: the ngx_event_udp.h header file.Vladimir Homutov1-0/+24
2021-07-15Core: added separate function for local source address cmsg.Vladimir Homutov1-0/+2
2021-07-15Core: made the ngx_sendmsg() function non-static.Vladimir Homutov1-0/+31
Additionally, the ngx_init_srcaddr_cmsg() function is introduced which initializes control message with connection local address. The NGX_HAVE_ADDRINFO_CMSG macro is defined when at least one of methods to deal with corresponding control message is available.
2021-07-12Core: the ngx_event_udp.h header file.Vladimir Homutov1-0/+43