quic_io¶
#include <quic_types.h>
Public Attributes¶
| Name | |
|---|---|
| quic_ssize(*)(void *io_ctx, const uint8_t *buf, size_t len, const struct sockaddr *to, socklen_t to_len) | send |
| quic_ssize(*)(void *io_ctx, uint8_t *buf, size_t cap, struct sockaddr_storage *from, socklen_t *from_len) | recv |
| int(*)(void *io_ctx, struct sockaddr_storage *addr, socklen_t *addr_len) | local_addr |
| int(*)(void *io_ctx) | fd |
| void * | io_ctx |
Detailed Description¶
How datagrams reach the network, so the engine contract says nothing about sockets. quic_io_udp_init() supplies the ordinary UDP implementation.
Public Attributes Documentation¶
variable send¶
quic_ssize(*)(void *io_ctx, const uint8_t *buf, size_t len, const struct sockaddr *to, socklen_t to_len) send;
variable recv¶
quic_ssize(*)(void *io_ctx, uint8_t *buf, size_t cap, struct sockaddr_storage *from, socklen_t *from_len) recv;