Click here to Skip to main content
15,895,256 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: why it prints 3? Pin
sam_psycho15-Jul-09 15:25
sam_psycho15-Jul-09 15:25 
GeneralRe: why it prints 3? Pin
«_Superman_»15-Jul-09 17:03
professional«_Superman_»15-Jul-09 17:03 
GeneralRe: why it prints 3? Pin
harold aptroot15-Jul-09 18:43
harold aptroot15-Jul-09 18:43 
QuestionRe: why it prints 3? Pin
David Crow16-Jul-09 2:59
David Crow16-Jul-09 2:59 
QuestionPaintDesktop Pin
daavena15-Jul-09 9:45
daavena15-Jul-09 9:45 
AnswerRe: PaintDesktop Pin
CPallini15-Jul-09 10:19
mveCPallini15-Jul-09 10:19 
GeneralRe: PaintDesktop Pin
Sauce!21-Jul-09 6:19
Sauce!21-Jul-09 6:19 
QuestionBufferring PAckets Pin
resolvequestion15-Jul-09 9:11
resolvequestion15-Jul-09 9:11 
Can anyone help me with example code where u can use (vector, queue, dequeue , map techniques)

Thanks Stuart Dootson &; Superman !

I will be receiving certain amount of packets but I am not sure exactly how much. There will no memory problem as certainly its being taken under consideration that the received packets will be at certain limit it will not exceed.

whats the difference between using vector versus dequeue or queue technique.

I am explaining my scenario . I have reader thread that will do blocking read and once it receives the first packet which will be of 20W with 1W header with it.. I need to calculate checksum of the 20W packet received. Than I need to read certain fields and need to decide where it needs to be buffered. Before buffering these packets I need to strip off the 1W header. Once the buffering is complete say I might receieve 500 packets of size 20Word. After I stop receving the packets. I need to analyze the packets that being buffered. And these packets are of 2 types theere might be 2W packet and 260W packet or partial packet and each of these packet will have header so. first I need to read the packet header of the first received packet inthe buffer and base don that I need to dispatch those packets to its destined location or hand over to the designated handler.

So confusion is whats the best efficient technique I should use. Using simple array is not best option so thought of asking here. Also how do Istrip off the header from the packet.

Any help woul dbe appreciated. I have just started coding but have not really much coded in C++ .. I am learning by dng google or reading previos discussion here on forum

THANKS!!!!
AnswerRe: Bufferring PAckets Pin
Randor 15-Jul-09 11:31
professional Randor 15-Jul-09 11:31 
AnswerRe: Bufferring PAckets Pin
«_Superman_»15-Jul-09 17:15
professional«_Superman_»15-Jul-09 17:15 
Questionwavelet transform c++ program Pin
mrby12315-Jul-09 8:34
mrby12315-Jul-09 8:34 
AnswerRe: wavelet transform c++ program Pin
CPallini15-Jul-09 9:34
mveCPallini15-Jul-09 9:34 
GeneralRe: wavelet transform c++ program Pin
mrby12315-Jul-09 9:47
mrby12315-Jul-09 9:47 
GeneralRe: wavelet transform c++ program Pin
mrby12315-Jul-09 10:17
mrby12315-Jul-09 10:17 
GeneralRe: wavelet transform c++ program Pin
Rick York15-Jul-09 10:26
mveRick York15-Jul-09 10:26 
GeneralRe: wavelet transform c++ program Pin
mrby12315-Jul-09 18:20
mrby12315-Jul-09 18:20 
QuestionNon-template based common data structure? Pin
crewchill15-Jul-09 6:37
crewchill15-Jul-09 6:37 
AnswerRe: Non-template based common data structure? Pin
Stuart Dootson15-Jul-09 8:23
professionalStuart Dootson15-Jul-09 8:23 
QuestionVisual c++ 6 doesn't show variables Pin
mariano_7615-Jul-09 6:07
mariano_7615-Jul-09 6:07 
AnswerRe: Visual c++ 6 doesn't show variables Pin
Stuart Dootson15-Jul-09 6:28
professionalStuart Dootson15-Jul-09 6:28 
GeneralRe: Visual c++ 6 doesn't show variables Pin
mariano_7615-Jul-09 21:53
mariano_7615-Jul-09 21:53 
GeneralRe: Visual c++ 6 doesn't show variables Pin
Stuart Dootson15-Jul-09 21:57
professionalStuart Dootson15-Jul-09 21:57 
AnswerRe: Visual c++ 6 doesn't show variables Pin
Iain Clarke, Warrior Programmer15-Jul-09 7:31
Iain Clarke, Warrior Programmer15-Jul-09 7:31 
AnswerRe: Visual c++ 6 doesn't show variables Pin
Joe Woodbury15-Jul-09 20:09
professionalJoe Woodbury15-Jul-09 20:09 
GeneralRe: Visual c++ 6 doesn't show variables Pin
mariano_7617-Jul-09 3:04
mariano_7617-Jul-09 3:04 

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.