Forum Discussion
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 ---