Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Bobby2001

  1. Bobby2001

    Timeout for Socket "connect" function

    Hi guys, Thank you for your responses. It seems very strange to me that one can use setsockopt function to set timeouts. Look at the link below, the Microsoft clearly list options SO_RCVTIMEO and SO_SNDTIMEO as not supported by setsockopt function. Are they wrong...
  2. Bobby2001

    Timeout for Socket "connect" function

    Please take a look at the segment of code below: SOCKET sock = socket( AF_INET, SOCK_STREAM, 0 ); if ( sock == INVALID_SOCKET ) { SetErrorCode(WSAGetLastError()); return FALSE; } int nRet = connect( sock, (PSOCKADDR)&remoteAddr, sizeof(remoteAddr)); if (nRet == SOCKET_ERROR ) {...
  3. Bobby2001

    Question about raw sockets

    Could you provide a bit more info. What is it ImpersonateUser? How can I use that? Thanks
  4. Bobby2001

    Question about raw sockets

    I have an application that uses sockets. At some point It checks whether the certain IP address exists in our network. In order to do that I create raw socket. Here is code segment: SOCKET sockRaw = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP); if(sockRaw == INVALID_SOCKET) {...

Part and Inventory Search

Back
Top