mbedtls_net_context
net_sockets.h
int int mbedtls_net_context::fd fd mbedtls_net_context::fd

The underlying file descriptor.

This field is only guaranteed to be present on POSIX/Unix-like platforms. On other platforms, it may have a different type, have a different meaning, or be absent altogether.

Wrapper type for sockets.

Currently backed by just a file descriptor, but might be more in the future (eg two file descriptors for combined IPv4 + IPv6 support, or additional structures for hand-made UDP demultiplexing).

- mbedtls_net_context
  fd