15,903,033 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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.