Click here to Skip to main content
15,891,253 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: software update solution Pin
Richard Andrew x6426-Sep-13 17:34
professionalRichard Andrew x6426-Sep-13 17:34 
AnswerRe: software update solution Pin
Richard Andrew x6426-Sep-13 11:09
professionalRichard Andrew x6426-Sep-13 11:09 
GeneralRe: software update solution Pin
koll Zhu26-Sep-13 15:06
koll Zhu26-Sep-13 15:06 
Questionwhy gSOAP only require the root CA when accessing HTTPS? Pin
szh12125-Sep-13 17:10
szh12125-Sep-13 17:10 
AnswerRe: why gSOAP only require the root CA when accessing HTTPS? Pin
Richard MacCutchan25-Sep-13 21:39
mveRichard MacCutchan25-Sep-13 21:39 
Questionhow to make this working: srand(time(NULL)); Pin
mrby12325-Sep-13 12:58
mrby12325-Sep-13 12:58 
AnswerRe: how to make this working: srand(time(NULL)); Pin
Richard Andrew x6425-Sep-13 13:12
professionalRichard Andrew x6425-Sep-13 13:12 
QuestionCRegKey read from registry? Pin
bosfan25-Sep-13 6:19
bosfan25-Sep-13 6:19 
AnswerRe: CRegKey read from registry? Pin
Richard Andrew x6425-Sep-13 7:47
professionalRichard Andrew x6425-Sep-13 7:47 
GeneralRe: CRegKey read from registry? Pin
bosfan25-Sep-13 21:46
bosfan25-Sep-13 21:46 
AnswerRe: CRegKey read from registry? Pin
Richard MacCutchan25-Sep-13 21:37
mveRichard MacCutchan25-Sep-13 21:37 
GeneralRe: CRegKey read from registry? Pin
bosfan25-Sep-13 21:45
bosfan25-Sep-13 21:45 
GeneralRe: CRegKey read from registry? Pin
Richard MacCutchan25-Sep-13 22:03
mveRichard MacCutchan25-Sep-13 22:03 
GeneralRe: CRegKey read from registry? Pin
bosfan25-Sep-13 22:32
bosfan25-Sep-13 22:32 
GeneralRe: CRegKey read from registry? Pin
Richard MacCutchan25-Sep-13 22:45
mveRichard MacCutchan25-Sep-13 22:45 
GeneralRe: CRegKey read from registry? Pin
bosfan26-Sep-13 20:42
bosfan26-Sep-13 20:42 
GeneralRe: CRegKey read from registry? Pin
Richard MacCutchan26-Sep-13 21:30
mveRichard MacCutchan26-Sep-13 21:30 
QuestionSocket Communication - Server with 2 different clients Pin
manoharbalu25-Sep-13 0:47
manoharbalu25-Sep-13 0:47 
AnswerRe: Socket Communication - Server with 2 different clients Pin
Richard MacCutchan25-Sep-13 1:01
mveRichard MacCutchan25-Sep-13 1:01 
GeneralRe: Socket Communication - Server with 2 different clients Pin
manoharbalu25-Sep-13 2:24
manoharbalu25-Sep-13 2:24 
First of all, I apologize for the inconvenience regarding my font usage and I assure that I won't continue that henceforth.

I want to add something to my above question.

1. The Server and client_1 are already developed applications which communicate flawlessly.
2. There may be a multiple client instances of client_1 that may run and get connected to the server and exchange data. So if any of the data changes in the server, the same gets reflected in all of the client instances of client_1.
3. Now I want to add on a new client_2 entirely different from client_1. So any number of client_2 instances may run and connect to the same server to exchange some other set of data.
4. The Server is listening in Port 1500 for eg. Suppose it gets a client request, now how am I from the server side going to recognize the client before calling accept() so that I could route the client accordingly to exchange data.
For Eg: If I know that it is from client_1 I will call SendDataClient1() in a thread. or I will call SendDataClient2() if I know that it is from client_2
Please suggest me with some code to find out a way to differentiate the client_1 and client_2 for the server
GeneralRe: Socket Communication - Server with 2 different clients Pin
Richard MacCutchan25-Sep-13 2:59
mveRichard MacCutchan25-Sep-13 2:59 
GeneralRe: Socket Communication - Server with 2 different clients Pin
manoharbalu25-Sep-13 19:12
manoharbalu25-Sep-13 19:12 
GeneralRe: Socket Communication - Server with 2 different clients Pin
Richard MacCutchan25-Sep-13 21:28
mveRichard MacCutchan25-Sep-13 21:28 
GeneralRe: Socket Communication - Server with 2 different clients Pin
manoharbalu25-Sep-13 22:11
manoharbalu25-Sep-13 22:11 
GeneralRe: Socket Communication - Server with 2 different clients Pin
Richard MacCutchan25-Sep-13 22:21
mveRichard MacCutchan25-Sep-13 22:21 

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.