kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/initialize_SO_REUSEADDR_value' into 'master'
[WiFi] fixed iperf example parameter opt isn't initialized bug See merge request espressif/esp-idf!10913pull/6275/head
commit
0e42b856af
|
@ -124,7 +124,7 @@ static esp_err_t IRAM_ATTR iperf_run_tcp_server(void)
|
||||||
int listen_socket;
|
int listen_socket;
|
||||||
struct timeval t;
|
struct timeval t;
|
||||||
int sockfd;
|
int sockfd;
|
||||||
int opt;
|
int opt = 1;
|
||||||
|
|
||||||
listen_socket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
|
listen_socket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
|
||||||
if (listen_socket < 0) {
|
if (listen_socket < 0) {
|
||||||
|
@ -195,7 +195,7 @@ static esp_err_t IRAM_ATTR iperf_run_udp_server(void)
|
||||||
int want_recv = 0;
|
int want_recv = 0;
|
||||||
uint8_t *buffer;
|
uint8_t *buffer;
|
||||||
int sockfd;
|
int sockfd;
|
||||||
int opt;
|
int opt = 1;
|
||||||
bool udp_recv_start = true ;
|
bool udp_recv_start = true ;
|
||||||
|
|
||||||
sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
|
sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
|
||||||
|
@ -253,7 +253,7 @@ static esp_err_t iperf_run_udp_client(void)
|
||||||
int want_send = 0;
|
int want_send = 0;
|
||||||
uint8_t *buffer;
|
uint8_t *buffer;
|
||||||
int sockfd;
|
int sockfd;
|
||||||
int opt;
|
int opt = 1;
|
||||||
int err;
|
int err;
|
||||||
int id;
|
int id;
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue