This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Address return form accept() / MDK Keil

Hi guys,

why or better when is the accept()  returning zero filled IP and PORT? Sometimes I have there right IP and port and sometimes zero filled ip.

Fullscreen
1
2
3
4
SOCKADDR_IN rem_addr = {0};
int addr_len = sizeof(SOCKADDR_IN);
int retAccept = accept(rl_sock_id, (SOCKADDR *)&rem_addr, &addr_len );
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Network Component  Version 7.13.0
RTOS2

There is no note about it in documentation https://www.keil.com/pack/doc/mw/Network/html/group__using__network__sockets__bsd__func.html#ga18e88467cfdbc3c361d53b9f928a87ab

Thank you!

0