Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help me use SetROP2 - Use ImageViewer Pin
PJ Arends5-Dec-09 6:59
professionalPJ Arends5-Dec-09 6:59 
GeneralRe: Help me use SetROP2 - Use ImageViewer Pin
Iain Clarke, Warrior Programmer5-Dec-09 8:20
Iain Clarke, Warrior Programmer5-Dec-09 8:20 
GeneralRe: Help me use SetROP2 - Use ImageViewer Pin
unistar_kl6-Dec-09 14:24
unistar_kl6-Dec-09 14:24 
AnswerRe: Help me use SetROP2 Pin
Rozis5-Dec-09 3:46
Rozis5-Dec-09 3:46 
GeneralRe: Help me use SetROP2 Pin
unistar_kl5-Dec-09 4:50
unistar_kl5-Dec-09 4:50 
GeneralRe: Help me use SetROP2 Pin
Rozis5-Dec-09 13:04
Rozis5-Dec-09 13:04 
GeneralRe: Help me use SetROP2 Pin
unistar_kl6-Dec-09 14:00
unistar_kl6-Dec-09 14:00 
QuestionHow to put a timer in an OSI model application Pin
chan114-Dec-09 3:28
chan114-Dec-09 3:28 
I have an OSI model application that receives packets from datalink (via TCP sockets) examines it and send it to network layer to extract the socket information and packet type, etc. and sends to transport layer and then to application layer to send it to another application again via TCP socket for responses.

in my application when a socket goes down, I send a message from datalink to manager class that watches all 4 layers to notify the manager class for socket disconnection and manager class makes a message to send to application layer to notify it to stop receiving messages from 2nd application till the datalink socket is up again. sometimes the socket goes up and down very quickly like there is a glitch for 2-3 sec and in this case I don't want to report any socket disconnection to application layer. to summerize:
in datalink layer:
Socket 1 is down -> send socket status to manager class, Manager class should start a timer and if within 15 seconds the status of the socket remained the same, make the message for socket 1 and send it to application layer. (if the status changed to down and up within 15 seconds do not send any message to application layer)
the problem is my application is always sending and receiving messages and can't pause for a period of time.
How can I add this timer just for the socket down/up message that wouldn't trigger other application's process?

Thanks,

Chan
AnswerRe: How to put a timer in an OSI model application Pin
«_Superman_»4-Dec-09 4:37
professional«_Superman_»4-Dec-09 4:37 
GeneralRe: How to put a timer in an OSI model application Pin
chan114-Dec-09 5:25
chan114-Dec-09 5:25 
AnswerRe: How to put a timer in an OSI model application Pin
Moak8-Dec-09 11:56
Moak8-Dec-09 11:56 
Questionserial port program Pin
shanmugarajaa4-Dec-09 1:05
shanmugarajaa4-Dec-09 1:05 
QuestionRe: serial port program Pin
David Crow4-Dec-09 3:10
David Crow4-Dec-09 3:10 
QuestionMFC Dialog box Pin
amit10i4-Dec-09 0:28
amit10i4-Dec-09 0:28 
QuestionRe: MFC Dialog box Pin
David Crow4-Dec-09 3:12
David Crow4-Dec-09 3:12 
AnswerRe: MFC Dialog box Pin
amit10i6-Dec-09 22:40
amit10i6-Dec-09 22:40 
QuestionRe: MFC Dialog box Pin
David Crow7-Dec-09 2:53
David Crow7-Dec-09 2:53 
QuestionEXCEL.EXE is not getting killed Pin
KTTransfer3-Dec-09 22:55
KTTransfer3-Dec-09 22:55 
AnswerRe: EXCEL.EXE is not getting killed Pin
Madhu Nair3-Dec-09 23:45
Madhu Nair3-Dec-09 23:45 
AnswerRe: EXCEL.EXE is not getting killed Pin
T21024-Dec-09 3:17
T21024-Dec-09 3:17 
GeneralRe: EXCEL.EXE is not getting killed Pin
David Crow4-Dec-09 3:33
David Crow4-Dec-09 3:33 
GeneralRe: EXCEL.EXE is not getting killed Pin
T21024-Dec-09 3:57
T21024-Dec-09 3:57 
GeneralRe: EXCEL.EXE is not getting killed Pin
David Crow4-Dec-09 4:02
David Crow4-Dec-09 4:02 
GeneralRe: EXCEL.EXE is not getting killed Pin
T21024-Dec-09 12:40
T21024-Dec-09 12:40 
GeneralRe: EXCEL.EXE is not getting killed Pin
David Crow5-Dec-09 5:40
David Crow5-Dec-09 5:40 

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.