Other Parts Discussed in Thread: CC3100, , CC3200
Tool/software: Starterware
Dear Support:
I have old code running on a Tiva with CC3100 using TI-RTOS running with SDK 1.2 and am able to make the following calls with no issues:
struct sockaddr_in ListenAddress;
struct sockaddr ClientAddress;
ListenSocket = socket( AF_INET, SOCK_STREAM, IPPROTO_TCP );
ListenAddress.sin_addr.s_addr = htonl( INADDR_ANY );
ListenAddress.sin_port = htons( CLIENT_TCP_SERVER_PORT );
setsockopt( ListenSocket, SOL_SOCKET, SO_KEEPALIVE, &optval, optlen );
I am porting this CC3100 code over to using MSP432 + CC3120 and when compiling my code with these calls above, it doesn't understand "stuct sockaddr_in" and "struct sockaddr" as well as the following:
AF_INET
SOCK_STREAM
IPPROTO_TCP
INADDR_ANY
htons
htonl
socket
setsockopt
Can you tell me what .h files I need to include in my project to build this so that I can easily move my CC3100 code over to using CC3120?
Thanks,
Tim