10093 Wsa Error
Contents |
Studio 2015 products Visual Studio Team Services Visual Studio Code Visual Studio Dev Essentials Office wsa error 10054 Office Word/Excel/PowerPoint Microsoft Graph Outlook OneDrive/Sharepoint Skype Services Store
10093 Winsock
Cortana Bing Application Insights Languages & platforms Xamarin ASP.NET C++ TypeScript .NET - VB, C#,
Socket Error 10054
F# Server Windows Server SQL Server BizTalk Server SharePoint Dynamics Programs & communities Students Startups Forums MSDN Subscriber downloads Sign in Search Microsoft
What Is A Socket Error
Search Windows Dev Center Windows Dev Center Explore 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 socket error 10053 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 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
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and socket error 10049 policies of this site About Us Learn more about Stack Overflow the socket error 10054 connection reset by peer company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags socket error codes linux Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only https://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx takes a minute: Sign up c++ project wont connect to socket with error 10093 up vote 1 down vote favorite 1 Why can't this program connect to the socket? I know that wsastartup fails, but I can't figure out how to use it. #include "StdAfx.h" #include
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 http://stackoverflow.com/questions/23097081/error-10093-on-accept-on-different-thread Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow https://answers.yahoo.com/question/?qid=20081112111240AAoiSc2 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 Error 10093 on accept() on different thread up socket error vote 0 down vote favorite I created a while loop with the winsock accept() method in it but it throws error 10093 (WSAData not yet initialized) every time it loops. WSAData IS initialized in the main thread that starts the accept thread. I don't know if this is anything thread related. The code to start the WSAData and the thread is this: iResult = WSAStartup(MAKEWORD(2,2), &wsaData); if socket error 10054 (iResult != 0) { printf("WSAStartup failed with error: %d\n", iResult); return 1; } // Things in between (bind, listen...) std::thread acceptThread(Accept); And here is the Accept() method I made (well, the actual accept method that is called): SOCKET temp = accept(ListenSocket, NULL, NULL); After that I check "temp" and that's when the error occurs The WSAStartup does work because it doesn't go in the if. c++ multithreading winsock share|improve this question asked Apr 16 '14 at 0:51 Dries 368115 And you haven't called WSACleanup()? –EJP Apr 16 '14 at 1:17 Yup. That was the problem! –Dries Apr 16 '14 at 10:04 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted Sockets do not have a thread affinity, so you can freely create a socket in one thread and use it in another thread. You do not need to call WSAStartup() on a per-thread basis. If accept() reports WSANOTINITIALISED then either WSAStartup() really was not called beforehand, or else WSACleanup() was called prematurely. share|improve this answer answered Apr 16 '14 at 1:47 Remy Lebeau 230k13140267 Thanks for the answer :) –Dries Apr 16 '14 at 10:04 add a comme
Help Suggestions Send Feedback Answers Home All Categories Arts & Humanities Beauty & Style Business & Finance Cars & Transportation Computers & Internet Consumer Electronics Dining Out Education & Reference Entertainment & Music Environment Family & Relationships Food & Drink Games & Recreation Health Home & Garden Local Businesses News & Events Pets Politics & Government Pregnancy & Parenting Science & Mathematics Social Science Society & Culture Sports Travel Yahoo Products International Argentina Australia Brazil Canada France Germany India Indonesia Italy Malaysia Mexico New Zealand Philippines Quebec Singapore Taiwan Hong Kong Spain Thailand UK & Ireland Vietnam Espanol About About Answers Community Guidelines Leaderboard Knowledge Partners Points & Levels Blog Safety Tips Computers & Internet Programming & Design Next Error code 10093 wsastartup has failed to start or something? hi i have been playing maple story and ever since the patch that brought pirates to ms i will try to play and i can play for about 2 minutes then it kicks me off saying "error code 10093 wsastartup has failed to start" or something like that and i want to know how i can fix it Update: its good to know im not the only one...now if only someone could actually answer my question lol but ty everyone who has answered so far for helping me realize that im not the only 1 4 following 16 answers 16 Report Abuse Are you sure you want to delete this answer? Yes No Sorry, something has gone wrong. Trending Now David Bowie Bruce Springsteen Cheryl Burke Amy Schumer iPhone 7 Rheumatoid Arthritis Symptoms Iggy Azalea VA Loans Mozilla Firefox Jennifer Lopez Answers Relevance Rating Newest Oldest Best Answer: This is a problem with Windows Vista users. Click Start then go to all programs > accessories > command prompt Right click command prompt and click 'run as administrator'. On the command prompt box type: netsh winsock reset ***Press enter and restart your computer***. You should not get the error anymore. Source(s): wnivre · 8 years ago 2 Thumbs up 0 Thumbs down Comment Add a comment Submit · just now Asker's rating Report Abuse This Site Might Help You. RE: error code 10093 wsastartup has failed to start o