Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WM_DEVICECHANGE Problem Pin
Ozer Karaagac6-Mar-11 22:43
professionalOzer Karaagac6-Mar-11 22:43 
GeneralRe: WM_DEVICECHANGE Problem Pin
goldenrose96-Mar-11 23:43
goldenrose96-Mar-11 23:43 
QuestionSockets and Port number Pin
sawerr5-Mar-11 23:09
sawerr5-Mar-11 23:09 
AnswerRe: Sockets and Port number Pin
Bill SerGio, The Infomercial King6-Mar-11 0:50
Bill SerGio, The Infomercial King6-Mar-11 0:50 
AnswerRe: Sockets and Port number Pin
Andrew Brock6-Mar-11 0:54
Andrew Brock6-Mar-11 0:54 
GeneralRe: Sockets and Port number Pin
sawerr6-Mar-11 1:36
sawerr6-Mar-11 1:36 
GeneralRe: Sockets and Port number Pin
Andrew Brock6-Mar-11 2:01
Andrew Brock6-Mar-11 2:01 
AnswerRe: Sockets and Port number Pin
Bill SerGio, The Infomercial King6-Mar-11 2:14
Bill SerGio, The Infomercial King6-Mar-11 2:14 
Andrew Brock gave you a textbook answer. What I am trying to explain is that teh textbooks are WRONG and all the design model examples are wrong in that they only deal with a single client connecting or multiple clients where the data is the same for each client and only a little data is passed.
The simple answer is this: The ip address can be same BUT the port number must change for each client that connects if you want the system to be practical.
This means that you create a console app with a minimum amount of memory as the server and launch a new instance of this for each client that connects so that each client is connecting on a different port number.
For example, I wrote a camera wall recently for the U.S. government and their specs stated that you may NOT use threads--that you must create a new instance of the server for each client connection. The reason for this is so that if one client goes down it will not take the whole system down. Each client uses the same ip address but has a unique port number.

Andrew Brock's answer is a textbook answer which doesn't apply to teh real world. Get real Anrew!
http://www.KabbalahCode.com

Questionhelp with tcl/tk in C Pin
basel-bh5-Mar-11 20:53
basel-bh5-Mar-11 20:53 
Questioncase statement in DLGPROC [SOLVED] Pin
goldenrose95-Mar-11 16:36
goldenrose95-Mar-11 16:36 
AnswerRe: case statement in DLGPROC Pin
Andrew Brock5-Mar-11 17:55
Andrew Brock5-Mar-11 17:55 
QuestionWM_COMMAND [SOLVED] Pin
goldenrose95-Mar-11 5:08
goldenrose95-Mar-11 5:08 
AnswerRe: WM_COMMAND Pin
Michael Dunn5-Mar-11 6:58
sitebuilderMichael Dunn5-Mar-11 6:58 
AnswerRe: WM_COMMAND Pin
CPallini5-Mar-11 7:37
mveCPallini5-Mar-11 7:37 
QuestionMoving GDI+ objects question Pin
csrss5-Mar-11 2:13
csrss5-Mar-11 2:13 
AnswerRe: Moving GDI+ objects question Pin
Niklas L5-Mar-11 2:42
Niklas L5-Mar-11 2:42 
GeneralRe: Moving GDI+ objects question Pin
csrss5-Mar-11 3:36
csrss5-Mar-11 3:36 
GeneralRe: Moving GDI+ objects question Pin
Niklas L5-Mar-11 5:39
Niklas L5-Mar-11 5:39 
GeneralRe: Moving GDI+ objects question Pin
csrss5-Mar-11 6:16
csrss5-Mar-11 6:16 
AnswerRe: Moving GDI+ objects question Pin
Andrew Brock5-Mar-11 2:42
Andrew Brock5-Mar-11 2:42 
GeneralRe: Moving GDI+ objects question Pin
csrss5-Mar-11 3:04
csrss5-Mar-11 3:04 
GeneralRe: Moving GDI+ objects question Pin
Andrew Brock5-Mar-11 3:09
Andrew Brock5-Mar-11 3:09 
GeneralRe: Moving GDI+ objects question Pin
csrss5-Mar-11 3:16
csrss5-Mar-11 3:16 
Question[solved] class size doesn't seem to be determined correctly [modified] Pin
Albert Holguin4-Mar-11 18:13
professionalAlbert Holguin4-Mar-11 18:13 
AnswerRe: class size doesn't seem to be determined correctly Pin
Niklas L4-Mar-11 23:14
Niklas L4-Mar-11 23:14 

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.