From RTOS doc 1.3.0: "Network programming use socket.."

k3a

From RTOS doc 1.3.0: "Network programming use socket.."

Postby k3a » Fri Nov 27, 2015 3:01 am

Hey,
what does this mean in the RTOS 1.3.0 API referene manual?

"3. Network programming use socket, please do not bind to the same port."

Which port? What programing?


Thanks

User avatar
kolban
Posts: 131
Joined: Tue Jun 16, 2015 1:09 pm
Location: Fort Worth, Texas, USA

Re: From RTOS doc 1.3.0: "Network programming use socket.."

Postby kolban » Sun Nov 29, 2015 3:24 am

I'm going to guess that the recommendation for writing C applications that run on FreeRTOS is that if one wants to perform network access ... then use the sockets API as opposed to the ESPCONN API.

In TCP/IP programming, we can set up a local listening socket that receives incoming requests, to do that we bind a socket to a local port number. I think this warning is that we should not attempt to bind two separate listener sockets to the same port number.

Mario_
Posts: 2
Joined: Fri Nov 27, 2015 3:05 am

Re: From RTOS doc 1.3.0: "Network programming use socket.."

Postby Mario_ » Sun Nov 29, 2015 3:35 am

lol, maybe. I thought there may be a port open to access the bootloader to program the device over the network and that we shouldn't bind a socket to the same port.

Who is online

Users browsing this forum: No registered users and 1 guest