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.

tivac1294 udp

main()
{
int sd, psd;
struct sockaddr_in name;
char buf[1024];
int cc;

sd = lwip_socket(AF_INET,SOCK_DGRAM,0);
name.sin_family = AF_INET;
name.sin_addr.s_addr = htonl(INADDR_ANY);
name.sin_port = htons(12345);

lwip_bind( sd, (struct sockaddr *) &name, sizeof(name) );
lwip_listen(sd,1);
psd = lwip_accept(sd, 0, 0);
lwip_close(sd);

while(1)
{
cc=lwip_recv(psd,buf,sizeof(buf,0),MSG_WAITALL);
{
if (cc == 0)
{
return(0);
}
buf[cc] = NULL;
printf("message received: %s\n", buf);
}
}
}

i am getting errors like

Description Resource Path Location Type
unresolved symbol lwip_bind, first referenced in ./main.obj udp C/C++ Problem

can anybody help me

Regards,

Krishnan