CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 17

Threaded View

  1. #15
    Join Date
    Mar 2001
    Posts
    2,529

    Re: invalid socket in accept()

    Try changing your first argument in the call to socket() from AF_INET to PF_INET! (both client and server)

    I would try to run valgrind or leak detection software to see if there are buffer overruns and leaks.

    http://valgrind.org/
    http://www.codeproject.com/KB/applic...eakfinder.aspx
    Last edited by ahoodin; December 30th, 2009 at 01:34 AM.
    ahoodin
    To keep the plot moving, that's why.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured