Hi,
We have used lwip_ping_freertos_cm7 example. The example is working fine i.e. Its pinging the host device.
My understanding is that-
1) lwip_ping_bm example uses Raw APIs (i.e. Non OS uses Raw API)
2) OS mode can use Socket API and Raw API
3) lwip_ping_freertos example uses Socket API
My question is, during the socket creation, it's using SOCK_RAW as socket type and ICMP as socket protocol.
lwip_socket(AF_INET, SOCK_RAW, IP_PROTO_ICMP);
I want to create SOCK_STREAM as socket type that uses TCP protocol. But if I directly modify it, its giving me error.
My requirement is to use ethernet with normal tcp/ip server-client example. But the above code is using sendto() ,recvfrom() APIs that are for UDP transmission. Can you help me, where to modify the code?
Thanks,
Devaharsha