Click here to Skip to main content
15,918,404 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCListCtrl row selection Pin
velayudhan_raj11-Oct-06 19:44
velayudhan_raj11-Oct-06 19:44 
AnswerRe: CListCtrl row selection Pin
Sachinpatole11-Oct-06 19:54
Sachinpatole11-Oct-06 19:54 
GeneralRe: CListCtrl row selection Pin
velayudhan_raj11-Oct-06 20:04
velayudhan_raj11-Oct-06 20:04 
GeneralRe: CListCtrl row selection Pin
Sachinpatole11-Oct-06 20:35
Sachinpatole11-Oct-06 20:35 
AnswerRe: CListCtrl row selection [modified] Pin
bosfan11-Oct-06 22:22
bosfan11-Oct-06 22:22 
QuestionIdentifying WMI Classes Registered ? Pin
Sachinpatole11-Oct-06 19:41
Sachinpatole11-Oct-06 19:41 
QuestionSLIP protocol implementation Pin
Sushmadm11-Oct-06 19:25
Sushmadm11-Oct-06 19:25 
AnswerRe: SLIP protocol implementation Pin
act_x11-Oct-06 20:20
act_x11-Oct-06 20:20 
Take a look at the RFC (http://www.cse.ohio-state.edu/cgi-bin/rfc/rfc1055.html)
PROTOCOL

The SLIP protocol defines two special characters: END and ESC. END is
octal 300 (decimal 192) and ESC is octal 333 (decimal 219) not to be
confused with the ASCII ESCape character; for the purposes of this
discussion, ESC will indicate the SLIP ESC character. To send a
packet, a SLIP host simply starts sending the data in the packet. If
a data byte is the same code as END character, a two byte sequence of
ESC and octal 334 (decimal 220) is sent instead. If it the same as
an ESC character, an two byte sequence of ESC and octal 335 (decimal
221) is sent instead. When the last byte in the packet has been
sent, an END character is then transmitted.


Are you implementing this on Windows ?

I would recommend creating layers ( translated as C++ Classes )

Transport Layer
Slip Layer


You will have to have two threads that do the job of sending and receiving data . In other words the job of the SLIP layer is to send packets by adding SLIP characters and the reverse ( receive packets and then sense the SLIP characters , then strip out these characters and notify the top layer that data has come )

I would suggest implementing callbacks so that the layers above can be notified upon data reception / successful sending of data / error conditions


Additionally you can add CRC checking in the transport layer

The transport layer can contain additionals such as retries , retry counts etc

As for the low level IO , use the standard serial port API's such as PurgeCOmm and readfile and writefile



Engineering is the effort !

QuestionDatabase Problem Pin
_anil_11-Oct-06 18:42
_anil_11-Oct-06 18:42 
QuestionProcess Management: Creating an "at" unix style task scheduler Pin
Dest2KO11-Oct-06 18:02
Dest2KO11-Oct-06 18:02 
AnswerRe: Process Management: Creating an "at" unix style task scheduler Pin
David Crow12-Oct-06 3:06
David Crow12-Oct-06 3:06 
GeneralRe: Process Management: Creating an "at" unix style task scheduler Pin
Dest2KO12-Oct-06 8:19
Dest2KO12-Oct-06 8:19 
QuestionRe: Process Management: Creating an "at" unix style task scheduler Pin
David Crow12-Oct-06 8:28
David Crow12-Oct-06 8:28 
AnswerRe: Process Management: Creating an "at" unix style task scheduler Pin
Dest2KO12-Oct-06 8:32
Dest2KO12-Oct-06 8:32 
Generalcreate a CPtrArray Pin
SaptaSri11-Oct-06 17:53
SaptaSri11-Oct-06 17:53 
Questionwindow sizing Pin
Waldermort11-Oct-06 17:22
Waldermort11-Oct-06 17:22 
AnswerRe: window sizing Pin
act_x11-Oct-06 20:25
act_x11-Oct-06 20:25 
AnswerRe: window sizing Pin
PJ Arends11-Oct-06 21:02
professionalPJ Arends11-Oct-06 21:02 
GeneralRe: window sizing Pin
Waldermort11-Oct-06 22:36
Waldermort11-Oct-06 22:36 
AnswerRe: window sizing Pin
James Brown11-Oct-06 22:20
James Brown11-Oct-06 22:20 
GeneralRe: window sizing Pin
Waldermort11-Oct-06 22:44
Waldermort11-Oct-06 22:44 
GeneralRe: window sizing Pin
Mark Salsbery12-Oct-06 6:08
Mark Salsbery12-Oct-06 6:08 
GeneralRe: window sizing Pin
PJ Arends12-Oct-06 11:27
professionalPJ Arends12-Oct-06 11:27 
QuestionMFC CDocManger - OnFileNew() Pin
Vaclav_11-Oct-06 16:26
Vaclav_11-Oct-06 16:26 
AnswerRe: MFC CDocManger - OnFileNew() Pin
PJ Arends11-Oct-06 20:29
professionalPJ Arends11-Oct-06 20:29 

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.