Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
BIO_s_datagram, BIO_new_dgram, BIO_dgram_set_peer, BIO_ctrl_dgram_connect, BIO_dgram_get_peer, BIO_ctrl_set_connected, BIO_dgram_recv_timedout, BIO_dgram_send_timedout, BIO_dgram_non_fatal_error — datagram socket BIOSYNOPSIS
#include <openssl/bio.h>BIO_s_datagram(void);
BIO_new_dgram(int fd, int close_flag);
BIO_dgram_set_peer(BIO *b, struct sockaddr *sa);
BIO_ctrl_dgram_connect(BIO *b, struct sockaddr *sa);
BIO_dgram_get_peer(BIO *b, struct sockaddr *sa);
BIO_ctrl_set_connected(BIO *b, long argl, struct sockaddr *sa);
BIO_dgram_recv_timedout(BIO *b);
BIO_dgram_send_timedout(BIO *b);
BIO_dgram_non_fatal_error(int errnum);
DESCRIPTION
BIO_s_datagram() returns the datagram socket BIO method. The usual application is to transmit data using the IPv4 or IPv6 udp(4) protocol.Constructors and destructors
BIO_new(3) allocates a new datagram socket BIO object and initializes all its data to zero, including the datagram socket file descriptor, the peer address, the init flag that can be retrieved with BIO_get_init(3), the connected flag, the MTU, and all timeout and error information. The reference count and the close flag are set to 1.Initialization and configuration
If the close flag is set in b, BIO_set_fd(3) clears all flags that are set in b and if the init flag was set, it calls shutdown(2) and close(2) on the previously assigned file descriptor. In any case, BIO_set_fd(3) then sets the new file descriptor and the new close flag according to its arguments and sets the init flag to 1.- BIO_C_GET_FD
- BIO_get_fd(3)
- BIO_C_SET_FD
- BIO_set_fd(3)
- BIO_CTRL_DGRAM_CONNECT
- BIO_ctrl_dgram_connect() (deprecated)
- BIO_CTRL_DGRAM_GET_PEER
- BIO_dgram_get_peer()
- BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP
- BIO_dgram_recv_timedout()
- BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP
- BIO_dgram_send_timedout()
- BIO_CTRL_DGRAM_SET_CONNECTED
- BIO_ctrl_set_connected()
- BIO_CTRL_DGRAM_SET_PEER
- BIO_dgram_set_peer()
- BIO_CTRL_GET_CLOSE
- BIO_get_close(3)
- BIO_CTRL_SET_CLOSE
- BIO_set_close(3)