Click here to Skip to main content
15,908,445 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VS2005 - compiler bug with CStrings? Pin
#realJSOP16-Jan-06 11:01
professional#realJSOP16-Jan-06 11:01 
GeneralRe: VS2005 - compiler bug with CStrings? Pin
Nish Nishant16-Jan-06 11:47
sitebuilderNish Nishant16-Jan-06 11:47 
QuestionMove / Refresh Windows Taskbar Pin
u6ik16-Jan-06 1:42
u6ik16-Jan-06 1:42 
AnswerRe: Move / Refresh Windows Taskbar Pin
u6ik16-Jan-06 20:41
u6ik16-Jan-06 20:41 
Questionhow can i calculate the length of sent data at server side Pin
baldha rakesh16-Jan-06 1:37
baldha rakesh16-Jan-06 1:37 
AnswerRe: how can i calculate the length of sent data at server side Pin
Bob Flynn16-Jan-06 2:39
Bob Flynn16-Jan-06 2:39 
GeneralRe: how can i calculate the length of sent data at server side Pin
baldha rakesh16-Jan-06 17:15
baldha rakesh16-Jan-06 17:15 
GeneralRe: how can i calculate the length of sent data at server side Pin
Bob Flynn17-Jan-06 3:09
Bob Flynn17-Jan-06 3:09 
Sorry I do not have example code to send - this is something that I did long ago on a DSP processor.

What you can do is send and recieve twice, something like this:

typedef struct{
int packetId; // if this is appropriate for you needs
int len;
}packet_S;

sendHdr.len = strlen(text);
rVal=send(sock,sendHdr,strlen(packet_S),0);
rVal=send(sock,text,sendHdr.len ,0);

rVal=recv(sock,recvHdr,strlen(packet_S),0);
dataLen = recvHdr.len;
rVal=recv(sock,data,dataLen,0);

As far as the best way to send to multiple clients, I do not know. You might do well to post a separate question in the forum again.

I hope this helps.
QuestionText Boxes in C++ Pin
Gktony16-Jan-06 0:45
Gktony16-Jan-06 0:45 
AnswerRe: Text Boxes in C++ Pin
_AnsHUMAN_ 16-Jan-06 1:01
_AnsHUMAN_ 16-Jan-06 1:01 
AnswerRe: Text Boxes in C++ Pin
Owner drawn16-Jan-06 1:10
Owner drawn16-Jan-06 1:10 
GeneralRe: Text Boxes in C++ Pin
toxcct16-Jan-06 1:18
toxcct16-Jan-06 1:18 
GeneralRe: Text Boxes in C++ Pin
Owner drawn16-Jan-06 1:19
Owner drawn16-Jan-06 1:19 
AnswerRe: Text Boxes in C++ Pin
Eytukan16-Jan-06 2:32
Eytukan16-Jan-06 2:32 
AnswerRe: Text Boxes in C++ Pin
Gktony16-Jan-06 3:13
Gktony16-Jan-06 3:13 
GeneralRe: Text Boxes in C++ Pin
toxcct16-Jan-06 3:24
toxcct16-Jan-06 3:24 
QuestionAccessing Namespace in other class Pin
romuzu16-Jan-06 0:42
romuzu16-Jan-06 0:42 
AnswerRe: Accessing Namespace in other class Pin
Owner drawn16-Jan-06 1:11
Owner drawn16-Jan-06 1:11 
Questionhow to use thread Pin
cancerion16-Jan-06 0:31
cancerion16-Jan-06 0:31 
AnswerRe: how to use thread Pin
Owner drawn16-Jan-06 1:18
Owner drawn16-Jan-06 1:18 
AnswerRe: how to use thread Pin
Eytukan16-Jan-06 3:07
Eytukan16-Jan-06 3:07 
AnswerRe: how to use thread Pin
ThatsAlok16-Jan-06 17:24
ThatsAlok16-Jan-06 17:24 
QuestionRescale video data Pin
dennis2416-Jan-06 0:12
dennis2416-Jan-06 0:12 
QuestionMS DataGrid Change Caption of Column Headers Pin
sdancer7515-Jan-06 22:44
sdancer7515-Jan-06 22:44 
QuestionADO 'Background Fetch Size' Pin
tuxyboy15-Jan-06 22:41
tuxyboy15-Jan-06 22:41 

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.