Casyncsocket Error 10038
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us socket error code 10038 Learn more about Stack Overflow the company Business Learn more about hiring developers or
Socket Error Codes Linux
posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow 10038 winsock Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up 10038 socket error up vote 3 down vote
Wsaenotsock 10038
favorite 1 Is there any solution for 10038 server error .i have done coding in c++; the server runs fine 10 to 12 hours but sudenly it gives 10038 socket error c++ visual-c++ sockets share|improve this question edited Oct 16 '10 at 9:00 asked Oct 16 '10 at 8:32 SunilRai86 34231025 add a comment| 3 Answers 3 active oldest votes up vote 6 down vote Without seeing your winsock error 10038 fix code: the symptom you describe sounds like you are leaking memory/resources, i.e. you are forgetting to free/delete objects you are allocating. It could also be a timing issue. I suggest you post your (cut-down) code. 10038 (WSAENOTSOCK): Socket operation on nonsocket. An operation was attempted on something that is not a socket. Either the socket handle parameter did not reference a valid socket, or for select, a member of an fd_set was not valid. share|improve this answer answered Oct 16 '10 at 8:34 Mitch Wheat 214k28345442 1 downvoters please leave a comment. –Mitch Wheat Jan 30 at 0:00 Can you explain the cryptic: "An operation was attempted on something that is not a socket" –Silvester Aug 11 at 8:53 add a comment| up vote 6 down vote I bet you are accessing a socket that you already closed. This is a very common timing bug in WinSock programming - the good news (and bad news, because it's hard to reproduce) is that you are not hitting it very often so it's likely your code does not need much work to make it perfect. I think you should add thread-safe diagnostics that output a string including the
Studio 2015 products Visual Studio Team Services Visual Studio Code Visual Studio Dev Essentials Office Office Word/Excel/PowerPoint Microsoft Graph Outlook OneDrive/Sharepoint Skype Services
Socket Error 10022
Store Cortana Bing Application Insights Languages & platforms Xamarin ASP.NET C++ TypeScript
10038 Wsagetlasterror
.NET - VB, C#, F# Server Windows Server SQL Server BizTalk Server SharePoint Dynamics Programs & communities what is a socket error Students Startups Forums MSDN Subscriber downloads Sign in Search Microsoft Search Windows Dev Center Windows Dev Center Explore What’s new for Windows 10 Intro to Universal Windows Platform http://stackoverflow.com/questions/3948164/10038-socket-error Coding challenges Develop for accessibility Build for enterprise Windows Store opportunities Docs Windows apps Get started Design and UI Develop API reference Publish Monetize Promote Games Get started UI design Develop Publish Desktop Get started Design Develop API reference Test and deploy Compatibility Windows IoT Microsoft Edge Windows Holographic Downloads Samples Support Why Windows Dashboard Explore https://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx What’s new for Windows 10 Intro to Universal Windows Platform Coding challenges Develop for accessibility Build for enterprise Windows Store opportunities Docs Windows apps Get started Design and UI Develop API reference Publish Monetize Promote Games Get started UI design Develop Publish Desktop Get started Design Develop API reference Test and deploy Compatibility Windows IoT Microsoft Edge Windows Holographic Downloads Samples Support Why Windows Dashboard Networking and Internet Windows Sockets 2 Winsock Reference Winsock Reference Windows Sockets Error Codes Windows Sockets Error Codes Windows Sockets Error Codes Socket Options Winsock IOCTLs Winsock Annexes Winsock Enumerations Winsock Functions Winsock Structures and Typedefs Winsock Tracing Events Winsock SPI Windows Sockets Error Codes TOC Collapse the table of content Expand the table of content This documentation is archived and is not being maintained. This documentation is archived and is not being maintained. Windows Sockets Error Codes Most Windows Sockets 2 functions do not return the specific cause of an error when the function returns. For information, see the Handling Winsock Errors
Forum Visual C++ & C++ Programming Network Programming Strange winsock error 10038 If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register or Login before you http://forums.codeguru.com/showthread.php?338917-Strange-winsock-error-10038 can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 9 of 9 Thread: Strange winsock error 10038 Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode April 28th, 2005,06:38 AM #1 wonderboy View Profile View Forum Posts Junior Member Join Date Apr 2005 Posts socket error 14 Strange winsock error 10038 I have a program doing the following Sending message to server recieve response and forward to client.This is done in a loop until recieve =0. I keep getting error 10038 which says i am trying to send data to a location that is not a socket.But its declared properly.It only happens occasionally, not all the time. Anyone any ideas or experience of something like this? Reply With Quote April 28th, 2005,06:53 AM #2 ahoodin socket error code View Profile View Forum Posts Elite Member Join Date Mar 2001 Posts 2,524 Re: Strange winsock error 10038 Probably you are overrunning a buffer that was declared directly ahead of the socket on the stack. Impossible to know without taking a peek. ahoodin Reply With Quote April 28th, 2005,08:18 AM #3 wonderboy View Profile View Forum Posts Junior Member Join Date Apr 2005 Posts 14 Re: Strange winsock error 10038 would you be interested in taking a peek?its only about 300 lines but its wrecking my head. Been stuck on it for days. I can e-mail or PM you. Would be very much appreciated Reply With Quote April 28th, 2005,10:10 AM #4 drewdaman View Profile View Forum Posts Member + Join Date Oct 2004 Location Canada Posts 628 Re: Strange winsock error 10038 Originally Posted by wonderboy would you be interested in taking a peek?its only about 300 lines but its wrecking my head. Been stuck on it for days. I can e-mail or PM you. Would be very much appreciated why not just post the relevant lines instead of the full 300! Reply With Quote April 28th, 2005,10:29 AM #5 wonderboy View Profile View Forum Posts Junior Member Join Date Apr 2005 Posts 14 Re: Strange winsock error 10038 Ok heres the relevant code. This is inside a thread that is called from the main. Its a Http proxy. Every request(GET,POST) kicks off a