Click here to Skip to main content
15,903,033 members

Comments by Member 14106234 (Top 5 by date)

Member 14106234 3-Jan-19 9:59am View    
With WSAGetLastError, I get, for the 3 error : 10093. So I used WSAStartup() and WSACleanup() because i forget that and i remplace write and read by send and recv. With that, my program work.
Thanks you all !
Member 14106234 3-Jan-19 5:55am View    
The write and read function are on stdio.h, I tried with send and recv but I get the same error. And the Sleep function, it doesn't change anything
Member 14106234 2-Jan-19 18:00pm View    
And the -1 in the fgets and the +1 on the write call is for the terminating null character.
Member 14106234 2-Jan-19 17:58pm View    
First of all, thanx for your answer. With strlen(errorCode) I get "Unknowm error". And thanx, I had not thought about the define.
Member 14106234 2-Jan-19 17:48pm View    
My error code for my read and write function is -1 and the & before the recvline doesn't change anything. For me, the problem in the read function is the "sockfd" argument because we already have problem with it on the write function.