Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Create two files with the same name but different extention Pin
Member 198099926-Nov-08 0:30
Member 198099926-Nov-08 0:30 
Questionmultiple modaless dialogs Pin
josip cagalj25-Nov-08 1:56
josip cagalj25-Nov-08 1:56 
AnswerRe: multiple modaless dialogs Pin
Nibu babu thomas25-Nov-08 2:21
Nibu babu thomas25-Nov-08 2:21 
GeneralRe: multiple modaless dialogs Pin
josip cagalj25-Nov-08 2:56
josip cagalj25-Nov-08 2:56 
GeneralRe: multiple modaless dialogs Pin
Rick York25-Nov-08 10:19
mveRick York25-Nov-08 10:19 
GeneralVC6 on Vista 64-Bit Pin
hairy_hats25-Nov-08 1:24
hairy_hats25-Nov-08 1:24 
GeneralRe: VC6 on Vista 64-Bit Pin
Randor 25-Nov-08 3:23
professional Randor 25-Nov-08 3:23 
Question_ftime() and leap seconds Pin
vikramlinux25-Nov-08 1:11
vikramlinux25-Nov-08 1:11 
AnswerRe: _ftime() and leap seconds Pin
David Crow25-Nov-08 14:23
David Crow25-Nov-08 14:23 
Questionfind all connect system ip address in the network Pin
Member 470867625-Nov-08 0:14
Member 470867625-Nov-08 0:14 
AnswerRe: find all connect system ip address in the network Pin
Code-o-mat25-Nov-08 5:43
Code-o-mat25-Nov-08 5:43 
GeneralRe: find all connect system ip address in the network Pin
Member 470867630-Nov-08 17:39
Member 470867630-Nov-08 17:39 
AnswerRe: find all connect system ip address in the network Pin
David Crow25-Nov-08 14:26
David Crow25-Nov-08 14:26 
GeneralRe: find all connect system ip address in the network Pin
Member 470867630-Nov-08 17:37
Member 470867630-Nov-08 17:37 
QuestionCan I disable repainting of a window? [SOLVED] Pin
sashoalm25-Nov-08 0:02
sashoalm25-Nov-08 0:02 
AnswerRe: Can I disable repainting of a window? Pin
Stephen Hewitt25-Nov-08 0:30
Stephen Hewitt25-Nov-08 0:30 
GeneralRe: Can I disable repainting of a window? Pin
sashoalm25-Nov-08 2:26
sashoalm25-Nov-08 2:26 
QuestionAccess denied problem in UAC Enable for removable media Pin
VCProgrammer25-Nov-08 0:02
VCProgrammer25-Nov-08 0:02 
QuestionBlocking recv() in worker thread or async OnReceive()? Pin
atillaselem24-Nov-08 23:07
atillaselem24-Nov-08 23:07 
AnswerRe: Blocking recv() in worker thread or async OnReceive()? Pin
Randor 25-Nov-08 6:04
professional Randor 25-Nov-08 6:04 
GeneralRe: Blocking recv() in worker thread or async OnReceive()? Pin
atillaselem25-Nov-08 7:39
atillaselem25-Nov-08 7:39 
hi david,
again me Shucks | :-\
Randor wrote:
Its hard to say what your requirements are without knowing what type of data your packets contain and how long it takes to process the data. CAsyncSocket has fairly good performance for client applications.


UDP packets are consist of ints & floats variables and a few char[] put into a Structure total is not more than 200 bytes. If nothing change to block and use recv() when compared OnReceive in terms of getting and pushing data into a thread-safe buffer should i stick with CAsyncsocket OnReceive()?


Randor wrote:
If you will be recieving the datagrams from over the internet and have an estimated low throughput then there is no reason why you shouldn't immediately update your application variables with the datagram values by first locking with multiple-readers single-writer synchronization objects.


these packets live on a dedicated LAN for our project. Packet loss is minimum but since packet contents do not change from packet to packet. So 3D scene is not effected much. Infact there is no chance to see as well Smile | :)
i consider using a thread safe queue to put/write all packet in one go and fetch/read at one go. The point is which is more effective? To do processing with data in a seperate worker thread or OnReceive()?

your help worth more than a billion Wink | ;)

regards,
Smile | :)
GeneralRe: Blocking recv() in worker thread or async OnReceive()? Pin
Randor 25-Nov-08 8:48
professional Randor 25-Nov-08 8:48 
GeneralRe: Blocking recv() in worker thread or async OnReceive()? Pin
atillaselem25-Nov-08 20:13
atillaselem25-Nov-08 20:13 
QuestionCString AND TCHAR AND [260] Pin
cpvc++24-Nov-08 22:53
cpvc++24-Nov-08 22:53 
QuestionRe: CString AND TCHAR AND [260] Pin
CPallini24-Nov-08 23:30
mveCPallini24-Nov-08 23:30 

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.