Click here to Skip to main content
15,904,494 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: CString AND TCHAR AND [260] Pin
cpvc++24-Nov-08 23:54
cpvc++24-Nov-08 23:54 
GeneralRe: CString AND TCHAR AND [260] Pin
Cedric Moonen25-Nov-08 0:09
Cedric Moonen25-Nov-08 0:09 
GeneralRe: CString AND TCHAR AND [260] Pin
CPallini25-Nov-08 0:11
mveCPallini25-Nov-08 0:11 
GeneralRe: CString AND TCHAR AND [260] Pin
cpvc++25-Nov-08 17:56
cpvc++25-Nov-08 17:56 
GeneralRe: CString AND TCHAR AND [260] Pin
CPallini25-Nov-08 21:18
mveCPallini25-Nov-08 21:18 
AnswerRe: CString AND TCHAR AND [260] Pin
Code-o-mat24-Nov-08 23:34
Code-o-mat24-Nov-08 23:34 
QuestionGet current network domain name Pin
Krishnakumartg24-Nov-08 22:25
Krishnakumartg24-Nov-08 22:25 
AnswerRe: Get current network domain name Pin
SandipG 24-Nov-08 22:32
SandipG 24-Nov-08 22:32 
QuestionGetting current firewall profile Pin
Krishnakumartg24-Nov-08 22:23
Krishnakumartg24-Nov-08 22:23 
AnswerRe: Getting current firewall profile Pin
User 21559725-Nov-08 1:21
User 21559725-Nov-08 1:21 
GeneralRe: Getting current firewall profile Pin
Krishnakumartg26-Nov-08 0:05
Krishnakumartg26-Nov-08 0:05 
Questionslider and MCIWnd Pin
soongez24-Nov-08 21:57
soongez24-Nov-08 21:57 
Questionslider and MCIWnd Pin
soongez24-Nov-08 21:55
soongez24-Nov-08 21:55 

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.