User guide
Ethernet Developers Guide
840 USE 115 00 Version 1.0
71
B.8 Timers
CSample_View re
q
uires to periodicall
y
receive a timer messa
g
e. This messa
g
e
tri
gg
ers the CSample_View to transmit a messa
g
e. Since window timers are a
limited resource, the window associated with CMainFrame class receives the timer
messa
g
es. CMainFrame member AddTimerList function will place a window on its
timer list. When CMainFrame processes the WM_TIMER messa
g
e, it sends each
window on its time list the user defined WM_POLL_INTERVAL messa
g
e.
MFC calls CSample_View member OnInitalUpdate function when it is first bein
g
created. OnInitialUpdate calls CMainFrameís AddTimerList in order to receive the
WM_POLL_INTERVAL messa
g
e. MFC architectural framework calls
CSample_View OnPollInterval member function to process this messa
g
e.
B.9 Transaction Processing
CSample_View transaction processin
g
consists of establishin
g
a connection,
transmittin
g
the re
q
uest, receivin
g
the response, and displa
y
in
g
the response.
CSample_View uses both a transmit and a receive state machine to advance a
transaction.