Click here to Skip to main content
15,910,471 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Code executing that should be Pin
Moak16-Aug-04 5:26
Moak16-Aug-04 5:26 
GeneralRe: Code executing that should be Pin
BlackDice16-Aug-04 5:36
BlackDice16-Aug-04 5:36 
GeneralOpen a USB - Port Pin
postamt16-Aug-04 4:16
postamt16-Aug-04 4:16 
GeneralRe: Open a USB - Port Pin
Cedric Moonen16-Aug-04 22:12
Cedric Moonen16-Aug-04 22:12 
GeneralSniffer design Pin
A Khan16-Aug-04 3:45
sussA Khan16-Aug-04 3:45 
GeneralRe: Sniffer design Pin
Ravi Bhavnani16-Aug-04 4:11
professionalRavi Bhavnani16-Aug-04 4:11 
GeneralRe: Sniffer design Pin
Antony M Kancidrowski16-Aug-04 4:33
Antony M Kancidrowski16-Aug-04 4:33 
GeneralTrouble Setting a KEEPALIVE Socket Option with WinSock Pin
jerry1211a16-Aug-04 3:27
jerry1211a16-Aug-04 3:27 
I have an application where I am attempting to set a socket option using "setsockopt." I want to set the KEEPALIVE feature to "ON."
The format is: setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, &optval, sizeof(optval)); I am trying to detect if a socket is HUNG, or if a network wire has become disconnected. Some documentaion indicates that optval must be a pointer to a char but other places I have seen it should be an int. I cant seem to get it to work.

This code snippet will not work as some of the documentation seems to indicate:
*************************************
int value = 1; //ON
setsockopt(mysocket, SOL_SOCKET, SO_KEEPALIVE, &value, sizeof(value));
*************************************
Can someone tell me how to set up the KEEPALIVE feature.

Thanks.
Smile | :)
Jerry
GeneralModal dialog coordinates Pin
Johnny Peszek16-Aug-04 2:53
Johnny Peszek16-Aug-04 2:53 
GeneralRe: Modal dialog coordinates Pin
Ravi Bhavnani16-Aug-04 3:42
professionalRavi Bhavnani16-Aug-04 3:42 
GeneralRe: Modal dialog coordinates Pin
Johnny Peszek16-Aug-04 5:47
Johnny Peszek16-Aug-04 5:47 
GeneralRe: Modal dialog coordinates Pin
David Crow16-Aug-04 3:52
David Crow16-Aug-04 3:52 
GeneralRe: Modal dialog coordinates Pin
Johnny Peszek16-Aug-04 5:48
Johnny Peszek16-Aug-04 5:48 
GeneralProblems with 256 color toolbar and theme engine Pin
RunninRS16-Aug-04 2:07
RunninRS16-Aug-04 2:07 
GeneralRe: Problems with 256 color toolbar and theme engine Pin
Antony M Kancidrowski16-Aug-04 2:31
Antony M Kancidrowski16-Aug-04 2:31 
GeneralWindow style for manually created CEdit Pin
rw10416-Aug-04 0:31
rw10416-Aug-04 0:31 
GeneralRe: Window style for manually created CEdit Pin
Jaime Stuardo16-Aug-04 4:17
Jaime Stuardo16-Aug-04 4:17 
QuestionCarriage return- How to identify? Pin
Deepak Samuel16-Aug-04 0:26
Deepak Samuel16-Aug-04 0:26 
AnswerRe: Carriage return- How to identify? Pin
rw10416-Aug-04 0:33
rw10416-Aug-04 0:33 
GeneralRe: Carriage return- How to identify? Pin
Deepak Samuel16-Aug-04 2:21
Deepak Samuel16-Aug-04 2:21 
GeneralRe: Carriage return- How to identify? Pin
jerry1211a16-Aug-04 3:32
jerry1211a16-Aug-04 3:32 
GeneralRe: Carriage return- How to identify? Pin
David Crow16-Aug-04 3:56
David Crow16-Aug-04 3:56 
Generalimage processing in VC Pin
wejahat15-Aug-04 23:21
wejahat15-Aug-04 23:21 
GeneralRe: image processing in VC Pin
Maximilien16-Aug-04 0:55
Maximilien16-Aug-04 0:55 
GeneralRe: image processing in VC Pin
Ravi Bhavnani16-Aug-04 4:09
professionalRavi Bhavnani16-Aug-04 4:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.