Forum Discussion
Altera_Forum
Honored Contributor
15 years agoNicheStack Wont Connect to Server
Hello everyone, I'm trying to set up some TCP communications between a PC and this DE2-115 board. When I fire up the system I get this: --- Quote Start --- InterNiche Porta...
Altera_Forum
Honored Contributor
15 years agoNever mind those Rx buffer errors. I changed afew things and they are no longer coming up...
Connect tries to connect, hangs there, then returns -1, but it never sets errno. I tried manually setting errno, and it reads out perfectly fine. Any ideas why connect wont set errno? --- Quote Start --- if(connect(sd, (struct sockaddr*)&server,sizeof(server))<0){ printf("Error Connecting To Server.\n"); fprintf(stderr,"Error: %d %s \n",errno, strerror(errno)); return -1; } else return sd; --- Quote End ---