using sys/socket.h on wiced sdk

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi, I'm using wiced sdk to program my BCM943362WCD4 board and I'm trying to use some library which including the <sys/socket.h> but got an error said "No such file or directory". Any suggestion on how to fix this error? I can't find where is this file or where can I download it.

0 Likes
1 Reply
RoDe_1773541
Level 4
Level 4
25 replies posted 10 replies posted 5 replies posted

Hi, sys/socket.h is part of the POSIX specification, which is generally part of a larger operating system such as Linux.  If you want to open a socket, you'll want to use the WICED interfaces such as wiced_tcp_create_socket.  You can find them documented in the wiced-sdk/doc/API.html file.  There's also an example in wiced-sdk/apps/snip/tcp_client.

-Rob