/hal_espressif-2.7.6/components/tcp_transport/ |
D | transport_tcp.c | 87 transport_tcp_t *tcp = esp_transport_get_context_data(t); in tcp_connect() local 98 tcp->sock = socket(PF_INET, SOCK_STREAM, 0); in tcp_connect() 100 if (tcp->sock < 0) { in tcp_connect() 110 setsockopt(tcp->sock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); in tcp_connect() 111 setsockopt(tcp->sock, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv)); in tcp_connect() 114 if (tcp_enable_keep_alive(tcp->sock, t->keep_alive_cfg) < 0) { in tcp_connect() 115 ESP_LOGE(TAG, "Error to set tcp [socket=%d] keep-alive", tcp->sock); in tcp_connect() 121 if ((flags = fcntl(tcp->sock, F_GETFL, NULL)) < 0) { in tcp_connect() 122 ESP_LOGE(TAG, "[sock=%d] get file flags error: %s", tcp->sock, strerror(errno)); in tcp_connect() 125 if (fcntl(tcp->sock, F_SETFL, flags |= O_NONBLOCK) < 0) { in tcp_connect() [all …]
|
/hal_espressif-2.7.6/examples/protocols/asio/tcp_echo_server/main/ |
D | echo_server.cpp | 8 using asio::ip::tcp; 14 session(tcp::socket socket) in session() 53 tcp::socket socket_; 62 : acceptor_(io_context, tcp::endpoint(tcp::v4(), port)) in server() 71 [this](std::error_code ec, tcp::socket socket) in do_accept() 82 tcp::acceptor acceptor_;
|
/hal_espressif-2.7.6/components/tcp_transport/test/ |
D | test_transport.c | 102 esp_transport_handle_t tcp = esp_transport_tcp_init(); in tcp_connect_task() local 103 esp_transport_list_add(transport_list, tcp, "tcp"); in tcp_connect_task() 105 params->ret = esp_transport_connect(tcp, "localhost", params->port, params->timeout_ms); in tcp_connect_task() 107 esp_transport_close(tcp); in tcp_connect_task() 116 esp_transport_handle_t tcp = esp_transport_tcp_init(); 117 esp_transport_list_add(transport_list, tcp, "tcp"); 129 esp_transport_handle_t tcp = esp_transport_tcp_init(); 130 esp_transport_handle_t ws = esp_transport_ws_init(tcp); 132 TEST_ASSERT_EQUAL(ESP_OK, esp_transport_destroy(tcp));
|
/hal_espressif-2.7.6/examples/protocols/asio/ssl_client_server/main/ |
D | asio_ssl_main.cpp | 34 using asio::ip::tcp; 42 const tcp::resolver::results_type &endpoints) in Client() 56 void connect(const tcp::resolver::results_type &endpoints) in connect() 60 const tcp::endpoint & /*endpoint*/) { in connect() 111 asio::ssl::stream<tcp::socket> socket_; 118 Session(tcp::socket socket, asio::ssl::context &context) in Session() 166 asio::ssl::stream<tcp::socket> socket_; 173 : acceptor_(io_context, tcp::endpoint(tcp::v4(), port)), in Server() 189 [this](const std::error_code & error, tcp::socket socket) { in do_accept() 198 tcp::acceptor acceptor_; [all …]
|
/hal_espressif-2.7.6/examples/protocols/asio/chat_server/main/ |
D | chat_server.cpp | 25 using asio::ip::tcp; 82 chat_session(tcp::socket socket, chat_room& room) in chat_session() 165 tcp::socket socket_; 177 const tcp::endpoint& endpoint) in chat_server() 187 [this](std::error_code ec, tcp::socket socket) in do_accept() 198 tcp::acceptor acceptor_; 224 tcp::endpoint endpoint(tcp::v4(), std::atoi(CONFIG_EXAMPLE_PORT)); in app_main()
|
/hal_espressif-2.7.6/examples/protocols/asio/chat_client/main/ |
D | chat_client.cpp | 21 using asio::ip::tcp; 29 const tcp::resolver::results_type& endpoints) in chat_client() 56 void do_connect(const tcp::resolver::results_type& endpoints) in do_connect() 59 [this](std::error_code ec, tcp::endpoint) in do_connect() 128 tcp::socket socket_; 164 tcp::resolver resolver(io_context); in app_main()
|
/hal_espressif-2.7.6/examples/bluetooth/esp_ble_mesh/ble_mesh_coex_test/ |
D | README.md | 52 …throughput| Test the case of Wi-Fi tcp tx, which will create a tcp client that will continuously s… 53 …roughput| Test the case of Wi-Fi tcp rx, which will create a tcp server that will continuously rec… 58 ### Case 1: tcp tx + scan 64 ### Case 2: tcp rx + scan 69 ### Case 3: tcp tx + adv 75 ### Case 4: tcp rx + adv
|
/hal_espressif-2.7.6/components/freemodbus/ |
D | component.mk | 3 COMPONENT_PRIV_INCLUDEDIRS += modbus/rtu modbus/tcp modbus/include 9 COMPONENT_SRCDIRS += modbus modbus/ascii modbus/functions modbus/rtu modbus/tcp
|
D | CMakeLists.txt | 15 "modbus/tcp/mbtcp.c" 16 "modbus/tcp/mbtcp_m.c" 51 modbus/rtu modbus/tcp modbus/include)
|
/hal_espressif-2.7.6/examples/protocols/modbus/mb_example_common/ |
D | README.md | 9 * `examples/protocols/modbus/tcp/mb_tcp_slave` Modbus serial slave implementation (TCP) 10 * `examples/protocols/modbus/tcp/mb_tcp_master` Modbus serial master implementation (TCP)
|
/hal_espressif-2.7.6/components/coap/port/ |
D | coap_mbedtls.c | 294 char *tcp; in get_san_or_cn_from_cert() local 310 tcp = strchr(cp, '\n'); in get_san_or_cn_from_cert() 311 if (tcp) in get_san_or_cn_from_cert() 312 *tcp = '\000'; in get_san_or_cn_from_cert() 314 tcp = strchr(cp, ','); in get_san_or_cn_from_cert() 315 if (tcp) in get_san_or_cn_from_cert() 316 *tcp = '\000'; in get_san_or_cn_from_cert() 332 tcp = strchr(cp, '\n'); in get_san_or_cn_from_cert() 333 if (tcp) in get_san_or_cn_from_cert() 334 *tcp = '\000'; in get_san_or_cn_from_cert() [all …]
|
/hal_espressif-2.7.6/examples/protocols/coap_client/ |
D | README.md | 16 If the URI is prefixed with coap+tcp://, then the CoAP will try to use TCP for the communication. 18 NOTE: coaps+tcp:// is not currently supported, even though both libcoap and MbedTLS support it. 97 optional `path`, and begins with `coap://`, `coaps://` or `coap+tcp://` 99 (not all do including coap+tcp://californium.eclipse.org).
|
/hal_espressif-2.7.6/examples/protocols/sockets/tcp_client_multi_net/main/ |
D | Kconfig.projbuild | 20 By default example uses setsockopt() to bind the tcp-client's socket
|
/hal_espressif-2.7.6/components/lwip/ |
D | component.mk | 47 lwip/src/core/tcp.o: CFLAGS += -Wno-type-limits
|
D | CMakeLists.txt | 38 "lwip/src/core/tcp.c" 162 lwip/src/core/tcp.c
|
/hal_espressif-2.7.6/docs/en/api-reference/protocols/ |
D | mqtt.rst | 21 * :example:`protocols/mqtt/tcp`: MQTT over tcp, default port 1883 22 * :example:`protocols/mqtt/ssl`: MQTT over tcp, default port 8883 23 …* :example:`protocols/mqtt/ssl_psk`: MQTT over tcp using pre-shared keys for authentication, defau…
|
/hal_espressif-2.7.6/examples/protocols/modbus/tcp/ |
D | README.md | 12 * `examples/protocols/modbus/tcp/mb_tcp_master` - Modbus TCP master 13 * `examples/protocols/modbus/tcp/mb_tcp_slave` - Modbus TCP slave
|
/hal_espressif-2.7.6/components/esp_websocket_client/ |
D | esp_websocket_client.c | 328 esp_transport_handle_t tcp = esp_transport_tcp_init(); in esp_websocket_client_init() local 329 ESP_WS_CLIENT_MEM_CHECK(TAG, tcp, goto _websocket_init_fail); in esp_websocket_client_init() 331 esp_transport_set_default_port(tcp, WEBSOCKET_TCP_DEFAULT_PORT); in esp_websocket_client_init() 332 esp_transport_tcp_set_keep_alive(tcp, &client->keep_alive_cfg); in esp_websocket_client_init() 333 …esp_transport_list_add(client->transport_list, tcp, "_tcp"); // need to save to transport list, fo… in esp_websocket_client_init() 336 esp_transport_handle_t ws = esp_transport_ws_init(tcp); in esp_websocket_client_init()
|
/hal_espressif-2.7.6/tools/test_apps/protocols/pppos/ |
D | README.md | 49 Server side expects to run tcp server on port 2222
|
/hal_espressif-2.7.6/tools/test_apps/protocols/mqtt/publish_connect_test/ |
D | README.md | 14 * transport: string parameter, one of: tcp, ssl, ws, wss
|
/hal_espressif-2.7.6/tools/test_apps/protocols/mqtt/publish_connect_test/main/ |
D | Kconfig.projbuild | 13 URL of an mqtt broker for tcp transport
|
/hal_espressif-2.7.6/examples/wifi/iperf/ |
D | README.md | 38 >I (14958) iperf: mode=tcp-server sip=192.168.10.248:5001, dip=0.0.0.0:5001, interval=3, time=1000
|
/hal_espressif-2.7.6/examples/protocols/mqtt/tcp/ |
D | README.md | 4 This example connects to the broker URI selected using `idf.py menuconfig` (using mqtt tcp transpor…
|
/hal_espressif-2.7.6/examples/protocols/sockets/tcp_client/ |
D | README.md | 24 Script example_test.py could be used as a counter part to the tcp-client project, ip protocol name …
|
/hal_espressif-2.7.6/components/esp_http_client/ |
D | esp_http_client.c | 539 esp_transport_handle_t tcp = NULL; in esp_http_client_init() local 563 (tcp = esp_transport_tcp_init()) && in esp_http_client_init() 564 (esp_transport_set_default_port(tcp, DEFAULT_HTTP_PORT) == ESP_OK) && in esp_http_client_init() 565 (esp_transport_list_add(client->transport_list, tcp, "http") == ESP_OK) in esp_http_client_init() 576 esp_transport_tcp_set_keep_alive(tcp, &client->keep_alive_cfg); in esp_http_client_init()
|