Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
http_client_transport_tcp_ctx Struct Reference

TCP transport context for the HTTP client. More...

#include <zephyr/net/http/client_multiprotocol.h>

Data Fields

int sock
 Socket file descriptor in use, managed by the transport.
const char * if_name
 Name of the interface that the HTTP client instance should be bound to.
http_client_socket_create_cb_t socket_create
 Optional callback function for socket creation.

Detailed Description

TCP transport context for the HTTP client.

Field Documentation

◆ if_name

const char* http_client_transport_tcp_ctx::if_name

Name of the interface that the HTTP client instance should be bound to.

Leave as NULL if not specified.

◆ sock

int http_client_transport_tcp_ctx::sock

Socket file descriptor in use, managed by the transport.

◆ socket_create

http_client_socket_create_cb_t http_client_transport_tcp_ctx::socket_create

Optional callback function for socket creation.

If NULL, the transport creates the socket itself: a TCP socket, or a TLS socket when used by the TLS transport.


The documentation for this struct was generated from the following file: