• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 338
  • Last Modified:

How to set timeout option of a socket?

Hi,

I want to set the timeout option of a socket, given a socket handle. I us my own protocol other than http. Can anyone help me?

Thanks in advance.
0
wuxz
Asked:
wuxz
1 Solution
 
kakamnaCommented:
Hi There
U can Try WSACleanUp();
0
 
MichaelSCommented:
You have to use setsockopt() function with proper arguments. If you use MFC then there is function CAsyncSocket::SetSockOpt()
0
 
wuxzAuthor Commented:
Thank you, I find that I have missed those two options in document.

Regards
wu xz
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now