Click here to Skip to main content
       

C / C++ / MFC

 
Questionhow to make this working: srand(time(NULL)); Pinmembermrby12325-Sep-13 12:58 
AnswerRe: how to make this working: srand(time(NULL)); PinprofessionalRichard Andrew x6425-Sep-13 13:12 
QuestionCRegKey read from registry? Pinmemberbosfan25-Sep-13 6:19 
AnswerRe: CRegKey read from registry? PinprofessionalRichard Andrew x6425-Sep-13 7:47 
GeneralRe: CRegKey read from registry? Pinmemberbosfan25-Sep-13 21:46 
AnswerRe: CRegKey read from registry? PinmvpRichard MacCutchan25-Sep-13 21:37 
GeneralRe: CRegKey read from registry? Pinmemberbosfan25-Sep-13 21:45 
GeneralRe: CRegKey read from registry? PinmvpRichard MacCutchan25-Sep-13 22:03 
GeneralRe: CRegKey read from registry? Pinmemberbosfan25-Sep-13 22:32 
GeneralRe: CRegKey read from registry? PinmvpRichard MacCutchan25-Sep-13 22:45 
GeneralRe: CRegKey read from registry? Pinmemberbosfan26-Sep-13 20:42 
GeneralRe: CRegKey read from registry? PinmvpRichard MacCutchan26-Sep-13 21:30 
QuestionSocket Communication - Server with 2 different clients Pinmembermanoharbalu25-Sep-13 0:47 
AnswerRe: Socket Communication - Server with 2 different clients PinmvpRichard MacCutchan25-Sep-13 1:01 
Please don't use bold font in your questions, it is considered rude. Also we are all perfectly capable of reading a clearly written question.
 
As to your problem, there is really nothing much to do other than designing a simple protocol for your clients:
On connect the server starts a new thread which will talk to that client.
The client then sends a request which indicates which data it requires
The server gets the data and sends to the client.
Veni, vidi, abiit domum

GeneralRe: Socket Communication - Server with 2 different clients Pinmembermanoharbalu25-Sep-13 2:24 
GeneralRe: Socket Communication - Server with 2 different clients PinmvpRichard MacCutchan25-Sep-13 2:59 
GeneralRe: Socket Communication - Server with 2 different clients Pinmembermanoharbalu25-Sep-13 19:12 
GeneralRe: Socket Communication - Server with 2 different clients PinmvpRichard MacCutchan25-Sep-13 21:28 
GeneralRe: Socket Communication - Server with 2 different clients Pinmembermanoharbalu25-Sep-13 22:11 
GeneralRe: Socket Communication - Server with 2 different clients PinmvpRichard MacCutchan25-Sep-13 22:21 
GeneralRe: Socket Communication - Server with 2 different clients Pinmembermanoharbalu26-Sep-13 3:36 
GeneralRe: Socket Communication - Server with 2 different clients PinmvpRichard MacCutchan26-Sep-13 4:20 
GeneralRe: Socket Communication - Server with 2 different clients Pinmemberkoll060425-Sep-13 16:17 
AnswerRe: Socket Communication - Server with 2 different clients PinmvpRichard MacCutchan25-Sep-13 21:17 
AnswerRe: Socket Communication - Server with 2 different clients PinmemberMalli_S25-Sep-13 2:24 
QuestionClarification regarding the function CAsyncSocket::GetPeerName() Pinmembermanoharbalu25-Sep-13 0:14 
AnswerRe: Clarification regarding the function CAsyncSocket::GetPeerName() PinmvpRichard MacCutchan25-Sep-13 0:22 
GeneralRe: Clarification regarding the function CAsyncSocket::GetPeerName() Pinmembermanoharbalu25-Sep-13 0:48 
Questionset the version Pinmemberkoll060424-Sep-13 23:29 
AnswerRe: set the version PinmvpRichard MacCutchan25-Sep-13 0:23 
GeneralRe: set the version Pinmemberkoll060425-Sep-13 0:46 
GeneralRe: set the version Pinmemberkoll060425-Sep-13 0:51 
QuestionRe: set the version PinmemberMaximilien25-Sep-13 8:03 
AnswerRe: set the version Pinmemberkoll060425-Sep-13 16:06 
Questiondoes listivew_???? make handles leak...? [modified] PinmemberJoneLe8624-Sep-13 19:10 
QuestionMFC PreTranslateMessage walks opposite the documentation. PinmemberVaclav_Sal24-Sep-13 9:04 
AnswerRe: MFC PreTranslateMessage walks opposite the documentation. Pinprofessional Randor 24-Sep-13 11:03 
QuestionHow to get Ip Address and Port No MFC Sockets Pinmembermanoharbalu24-Sep-13 3:26 
AnswerRe: How to get Ip Address and Port No MFC Sockets Pinmemberjeron124-Sep-13 3:40 
QuestionCheck Driver Pinmemberjohn563224-Sep-13 1:25 
QuestionRe: Check Driver PinmemberDavidCrow24-Sep-13 3:21 
AnswerRe: Check Driver Pinmemberjeron124-Sep-13 3:29 
AnswerRe: Check Driver PinmemberErudite_Eric24-Sep-13 8:43 
AnswerRe: Check Driver PinmemberGisle Vanem25-Sep-13 0:24 
Questionwhen its required explicit keyword in constructor Pinmemberranjithkumar8124-Sep-13 1:00 
AnswerRe: when its required explicit keyword in constructor PinmemberAndré Kraak24-Sep-13 2:16 
QuestionConvert raw image data to PNG PinmemberDon Guy23-Sep-13 12:39 
AnswerRe: Convert raw image data to PNG PinmemberGarth J Lancaster23-Sep-13 13:03 
AnswerRe: Convert raw image data to PNG Pinprofessional Randor 23-Sep-13 15:00 
GeneralRe: Convert raw image data to PNG PinmemberDon Guy23-Sep-13 15:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.140709.1 | Last Updated 11 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid