WSAGetLastError() not giving error

This is a discussion on WSAGetLastError() not giving error within the Networking/Device Communication forums, part of the General Programming Boards category; Hey everyone, I'm having difficulties again I've had this problem (or a similar one) before, but I don't remember what ...

  1. #1
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879

    WSAGetLastError() not giving error

    Hey everyone, I'm having difficulties again I've had this problem (or a similar one) before, but I don't remember what caused it or if I ever figured out what caused it in the first place. So my problem is, I try calling send() and it returns SOCKET_ERROR. Then I call WSAGetLastError() right after, and it returns 0. Earlier, I had the program log just the return of send() and the return value of WSAGetLastError() and it returned WSAENOTCONN, but I couldn't see any reason that it should be disconnected... then I had it log the gcount() of a ifstream before calling send(), and now WSAGetLastError doesnt say theres an error anymore, even though right before it there's an error... does anybody have any ideas?
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  2. #2
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Ahh nvm the problem had nothing to do with the sockets, it was actually a problem with a filename containing '/' (!!!). Still dunno why the WSAGetLastError() came up with a WSAENOTCONN though...
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 09:18 PM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07:39 AM
  4. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 09:57 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21