Search found 4 matches

by qaqa85
Fri Mar 11, 2022 2:16 pm
Forum: General Discussion
Topic: How to propertly close listener socket in TCP server
Replies: 0
Views: 1908

How to propertly close listener socket in TCP server

I got a little problem with propertly closing listener socket. I tried two methods: 1. First was just calling shutdown + close (but sometimes it isn't escaping socket accept function) 2. Second was forcing close by using SO_LINGER (but sometimes it's thow an error) assertion "don't call tcp_abort/tc...
by qaqa85
Thu Nov 25, 2021 12:26 pm
Forum: General Discussion
Topic: Problem with socket leak
Replies: 3
Views: 5611

Re: Problem with socket leak

error in accept (23) means no avaliable socket can be allocated.You can increass socket number by CONFIG_LWIP_MAX_SOCKETS. Thanks for answear. I know that. I can start dns server + create socket but when I close it and then want to strat again i got error in accept 23. Its seems to be a socket leak...
by qaqa85
Wed Nov 24, 2021 1:29 pm
Forum: General Discussion
Topic: Problem with socket leak
Replies: 3
Views: 5611

Problem with socket leak

Hello guys, I have a little problem with closing task and socket. I found little library to make dns hijack serwer. My steps 1. call dns_hijack_srv_start to start DNS serwer. (everything works fine - can make TCP connection) 2. call dns_hijack_srv_stop to stop DNS server 3. call dns_hijack_srv_start...
by qaqa85
Wed Jun 02, 2021 8:53 am
Forum: ESP-IDF
Topic: Its possible to make UPD socket listen on 192.168.x.x?
Replies: 1
Views: 1976

Its possible to make UPD socket listen on 192.168.x.x?

Hi,
I made a program to configure my ESP via UDP. Esp answer to commands that I send normally and by broadcast. And i got a question. Is it possible to made udp socket listen on all adress in 192.168.x.x even if esp didnt have adress from DHPC server?