This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI-RTOS
Hi,
I am configuring the client with reference to the TCP Echo example.
The following is the code:
struct sockaddr_in serverAddr; memset(&serverAddr, 0, sizeof(serverAddr)); serverAddr.sin_family = AF_INET; serverAddr.sin_addr.s_addr = inet_addr("192.168.0.3"); serverAddr.sin_port = htons(8000); int status = connect(sock, (struct sockaddr*)&serverAddr, sizeof(serverAddr)); if(status == -1) { return; }
Build Console:
warning #225-D: function "inet_addr" declared implicitly
How do I resolve this warning?
Thanks in advance.