Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: About Windows OS Pin
Zac Howland22-Jun-06 9:22
Zac Howland22-Jun-06 9:22 
GeneralRe: About Windows OS Pin
Nemanja Trifunovic22-Jun-06 9:48
Nemanja Trifunovic22-Jun-06 9:48 
GeneralRe: About Windows OS Pin
Zac Howland22-Jun-06 9:58
Zac Howland22-Jun-06 9:58 
GeneralRe: About Windows OS Pin
Nemanja Trifunovic22-Jun-06 11:45
Nemanja Trifunovic22-Jun-06 11:45 
GeneralRe: About Windows OS Pin
Zac Howland23-Jun-06 3:21
Zac Howland23-Jun-06 3:21 
AnswerRe: About Windows OS Pin
Stephen Hewitt22-Jun-06 14:24
Stephen Hewitt22-Jun-06 14:24 
QuestionSynchronous/Ascynchronous sockets Pin
CMas0722-Jun-06 3:58
CMas0722-Jun-06 3:58 
AnswerRe: Synchronous/Ascynchronous sockets Pin
Zac Howland22-Jun-06 5:29
Zac Howland22-Jun-06 5:29 
You said this is for MC (multicast?) programming? That being the case, some of your options are limited. But since much of your post is about Client/Server architecture:

Typically, the way I set up my server is to have 1 listening thread and either 1 thread per connection, or 1 thread for all connections (depending on the amount of traffic I intend to be sending/receiving).

On the client side, the choice between asynchronous and synchronous depends on your goals. For example, if you are building a chat client, you don't want the receive handler blocking while you are trying to send things.

Generally, you want to stick to one method or the other (either synchronous or async). Mixing the 2 can create interesting, and hard to track down, bugs in your system.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac
GeneralRe: Synchronous/Ascynchronous sockets Pin
led mike22-Jun-06 5:36
led mike22-Jun-06 5:36 
GeneralRe: Synchronous/Ascynchronous sockets Pin
Zac Howland22-Jun-06 6:13
Zac Howland22-Jun-06 6:13 
GeneralRe: Synchronous/Ascynchronous sockets Pin
led mike22-Jun-06 7:22
led mike22-Jun-06 7:22 
GeneralRe: Synchronous/Ascynchronous sockets Pin
Zac Howland22-Jun-06 7:24
Zac Howland22-Jun-06 7:24 
GeneralRe: Synchronous/Ascynchronous sockets Pin
CMas0722-Jun-06 5:58
CMas0722-Jun-06 5:58 
GeneralRe: Synchronous/Ascynchronous sockets Pin
Zac Howland22-Jun-06 6:18
Zac Howland22-Jun-06 6:18 
QuestionRe: Synchronous/Ascynchronous sockets Pin
CMas075-Jul-06 3:34
CMas075-Jul-06 3:34 
AnswerRe: Synchronous/Ascynchronous sockets Pin
Zac Howland5-Jul-06 4:44
Zac Howland5-Jul-06 4:44 
GeneralRe: Synchronous/Ascynchronous sockets Pin
CMas075-Jul-06 5:02
CMas075-Jul-06 5:02 
GeneralRe: Synchronous/Ascynchronous sockets Pin
Zac Howland5-Jul-06 5:13
Zac Howland5-Jul-06 5:13 
AnswerRe: Synchronous/Ascynchronous sockets Pin
led mike22-Jun-06 5:34
led mike22-Jun-06 5:34 
GeneralRe: Synchronous/Ascynchronous sockets Pin
CMas0722-Jun-06 6:02
CMas0722-Jun-06 6:02 
Questionhow to open a *.txt file Pin
divisameer22-Jun-06 3:58
divisameer22-Jun-06 3:58 
AnswerRe: how to open a *.txt file Pin
toxcct22-Jun-06 3:59
toxcct22-Jun-06 3:59 
QuestionRe: how to open a *.txt file Pin
David Crow22-Jun-06 4:06
David Crow22-Jun-06 4:06 
AnswerRe: how to open a *.txt file Pin
Hamid_RT22-Jun-06 20:10
Hamid_RT22-Jun-06 20:10 
Questionvalues reading from a text document Pin
divisameer22-Jun-06 3:46
divisameer22-Jun-06 3:46 

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.