Home > Socket Error > Winsock Error 10038

Winsock Error 10038

Contents

Login. Looking at the line more closely reveals that there is a parentheses error in the line: if ((sa = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) == INVALID_SOCKET)) the == is executed first, and as Join them; it only takes a minute: Sign up send(), returns Winsock Error 10038 up vote 0 down vote favorite Problem: Call to send(), returns Winsock Error 10038 against socket handle Printing out sa to cerr shows that it is zero, so something around the call to the socket() function is bad. his comment is here

If your application is single-threaded and doesn't use asynchronous callbacks, then you can't call closesocket during the select call. How much and what type of damage does Warlock Thought Shield deal? Why doesn't my dehumidifier stay on the humidity setting I select? more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed

What Is A Socket Error

Does it make sense for these space ships to have turrets? Privacy Policy Site Map Support Terms of Use Please see my response to your other thread, at http://www.codeguru.com/forum/showthread.php?t=338574 Mike Reply With Quote Quick Navigation Network Programming Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home

  1. But don't call closesocket() on a SOCKET handle which is in use by select() or poll().
  2. Sorting daq signal list...
  3. Service Unavailable HTTP Error 503.

Join them; it only takes a minute: Sign up 10038 socket error up vote 3 down vote favorite 1 Is there any solution for 10038 server error .i have done coding C++11 - typeid uniqueness Am I interrupting my husband's parenting? Anyway, on uninstalling this software, the problem has been solved. Socket Error Codes Linux I don't mean to come over as if I am biting your hands...But all I am saying is that I am 100% positive that the error is in the scan proc...

Why can't the second fundamental theorem of calculus be proved in just two lines? Socket Error 10053 I suggest you post your (cut-down) code. 10038 (WSAENOTSOCK): Socket operation on nonsocket. I think you should add thread-safe diagnostics that output a string including the socket value (an int, basically) on every open and close, and from anywhere you see this 10038 or http://stackoverflow.com/questions/577780/send-returns-winsock-error-10038 Join them; it only takes a minute: Sign up Winsock - 10038 Error - Win2K3 Server - baffling behaviour up vote 0 down vote favorite Attempt to send a message through

share|improve this answer answered Feb 20 '09 at 23:46 a_mole add a comment| up vote 0 down vote Thanks so much to a_mole for the idea of checking for layered winsock Socket Error 10061 Connection Refused Why did my cron job run? Subscribe to our monthly newsletter for tech news and trends Membership How it Works Gigs Live Careers Plans and Pricing For Business Become an Expert Resource Center About Us Who We what am i doing wrong?

Socket Error 10053

I have found theses on a similar subject to my own, and want to use their references with my own text and a similar flow. official site The goal is to try to compress 10-12 hours of 'normal' socket activity into as small a space of time as possible, to really expose any hard-to-detect concurrency problems. What Is A Socket Error Thanks 0 Question by:swebb Facebook Twitter LinkedIn Google LVL 2 Best Solution bymbreuker You say you uninstalled IE 4 and re-installed SP 3, but did you re-install NTMail? Socket Error 10049 Output Drift of an operational Integrator What would be the value of gold and jewelry in a post-apocalyptic society?

ecube Guest Re: Winsock Error Code: 10038 « Reply #11 on: May 09, 2007, 07:15:19 PM » try this code as it supports both a host or an ip, your current http://pdctoday.com/socket-error/winsock-10038-socket-error.php Microsoft claims the winsock 10038 error is a "bug" in SP 3. I'm sure there was a time you had to ask for help? –Lloyd Sargent Feb 7 '14 at 21:42 add a comment| Your Answer draft saved draft discarded Sign up Interlace strings Companion file .qgs~ My 21 yr old adult son hates me English fellow vs Arabic fellah How to report trailhead bugs Small part of an INI parser Why does Socket Error 10054 Connection Reset By Peer

Im currently using code::blocks, should i change ides? –Kelvin Silva Jan 13 '13 at 2:56 @KelvinSilva - I would not even bother to look closely at the code. An operation was attempted on something that is not a socket. Copyright Quinstreet Inc. 2002-2016 MenuExperts Exchange Browse BackBrowse Topics Open Questions Open Projects Solutions Members Articles Videos Courses Contribute Products BackProducts Gigs Live Courses Vendor Services Groups Careers Store Headlines Website http://pdctoday.com/socket-error/winsock-send-error-10038.php Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic.

Advanced Search 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 Winsock Error 10061 It is possible Go to Solution 1 Comment LVL 2 Overall: Level 2 Windows Networking 2 Message Accepted Solution by:mbreuker1998-11-12 You say you uninstalled IE 4 and re-installed SP 3, i just didnt know what was causing it. –Kelvin Silva Jan 13 '13 at 2:37 Also what ide would you reccommend?

CPPs, headers only and include the .dsp file.

Suggested Solutions Title # Comments Views Activity Help with DNS Statis entry ending in 0 (10.1.1.0) 12 55 106d Dell 3115cn - SMB/FTP Error 016=781 19 117 78d getting internet into Register now! you are forgetting to free/delete objects you are allocating. Socket Error 11001 You could get the same behavior by setting the non-blocking mode on your socket and calling recvfrom. –Ben Voigt Mar 19 '13 at 16:02 the frequency of data received

Different use of tenses in Iberian vs South American (and/or Andean) Spanish Output a googol copies of a string A ring in which the two operations are equal is {0} Why We don't support this API version. It could also be a timing issue. check over here Any suggestions on what to try next.

share|improve this answer answered Oct 16 '10 at 12:23 Steve Townsend 42k453111 add a comment| up vote 4 down vote There may be two reasons for this: Your socket descriptor in The service is unavailable. After around 40 seconds, messages are received successfully from the same socket and subsequently the send() is also succeeding in the same socket. Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic.

Connect with top rated Experts 14 Experts available now in Live! Why did my cron job run?