Click here to Skip to main content
15,917,641 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: command buttons Pin
Member 59031014-Jul-09 18:12
Member 59031014-Jul-09 18:12 
GeneralRe: command buttons Pin
Member 59031014-Jul-09 18:12
Member 59031014-Jul-09 18:12 
AnswerRe: command buttons Pin
«_Superman_»14-Jul-09 19:53
professional«_Superman_»14-Jul-09 19:53 
QuestionBuffering incoming packets Pin
resolvequestion14-Jul-09 17:36
resolvequestion14-Jul-09 17:36 
AnswerRe: Buffering incoming packets Pin
«_Superman_»14-Jul-09 17:56
professional«_Superman_»14-Jul-09 17:56 
AnswerRe: Buffering incoming packets Pin
Richard Andrew x6414-Jul-09 20:05
professionalRichard Andrew x6414-Jul-09 20:05 
AnswerRe: Buffering incoming packets Pin
Stuart Dootson14-Jul-09 21:36
professionalStuart Dootson14-Jul-09 21:36 
GeneralRe: Buffering incoming packets Pin
resolvequestion15-Jul-09 3:30
resolvequestion15-Jul-09 3:30 
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!!!!
QuestionHow to read and display the height map from STL File? Pin
DevelopmentNoob14-Jul-09 15:44
DevelopmentNoob14-Jul-09 15:44 
AnswerRe: How to read and display the height map from STL File? Pin
DevelopmentNoob14-Jul-09 20:42
DevelopmentNoob14-Jul-09 20:42 
GeneralRe: How to read and display the height map from STL File? Pin
CPallini14-Jul-09 21:14
mveCPallini14-Jul-09 21:14 
GeneralRe: How to read and display the height map from STL File? Pin
DevelopmentNoob16-Jul-09 21:22
DevelopmentNoob16-Jul-09 21:22 
QuestionHow to convert LPCTSTR for MessageBox Function Pin
egerving14-Jul-09 9:49
egerving14-Jul-09 9:49 
AnswerRe: How to convert LPCTSTR for MessageBox Function Pin
Chris Losinger14-Jul-09 10:05
professionalChris Losinger14-Jul-09 10:05 
AnswerRe: How to convert LPCTSTR for MessageBox Function Pin
Michael Schubert14-Jul-09 12:49
Michael Schubert14-Jul-09 12:49 
AnswerRe: How to convert LPCTSTR for MessageBox Function Pin
David Crow14-Jul-09 16:08
David Crow14-Jul-09 16:08 
QuestionNewbie question, problem compiling Pin
Adassus14-Jul-09 8:19
Adassus14-Jul-09 8:19 
QuestionRe: Newbie question, problem compiling Pin
Roger Stoltz14-Jul-09 8:29
Roger Stoltz14-Jul-09 8:29 
AnswerRe: Newbie question, problem compiling Pin
Randor 14-Jul-09 9:28
professional Randor 14-Jul-09 9:28 
AnswerRe: Newbie question, problem compiling Pin
Maximilien14-Jul-09 9:30
Maximilien14-Jul-09 9:30 
AnswerRe: Newbie question, problem compiling Pin
Adassus14-Jul-09 11:41
Adassus14-Jul-09 11:41 
GeneralRe: Newbie question, problem compiling Pin
Randor 14-Jul-09 11:59
professional Randor 14-Jul-09 11:59 
GeneralRe: Newbie question, problem compiling Pin
Adassus14-Jul-09 15:44
Adassus14-Jul-09 15:44 
QuestionUSB interaction from user space. I need some light please! Pin
sinosoidal14-Jul-09 6:32
sinosoidal14-Jul-09 6:32 
AnswerRe: USB interaction from user space. I need some light please! Pin
Roger Stoltz14-Jul-09 6:59
Roger Stoltz14-Jul-09 6:59 

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.