Click here to Skip to main content
16,005,178 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCDialogBar Initialization Pin
JennyP8-Aug-02 19:09
JennyP8-Aug-02 19:09 
GeneralRe: CDialogBar Initialization Pin
Shog98-Aug-02 19:40
sitebuilderShog98-Aug-02 19:40 
GeneralPopup menu Pin
Vijayalakshmi8-Aug-02 18:49
Vijayalakshmi8-Aug-02 18:49 
GeneralRe: Popup menu Pin
Steen Krogsgaard9-Aug-02 0:23
Steen Krogsgaard9-Aug-02 0:23 
Generalrecv() function Pin
zecodela8-Aug-02 17:25
zecodela8-Aug-02 17:25 
GeneralRe: recv() function Pin
Nish Nishant8-Aug-02 17:34
sitebuilderNish Nishant8-Aug-02 17:34 
GeneralRe: recv() function Pin
zecodela8-Aug-02 20:17
zecodela8-Aug-02 20:17 
GeneralRe: recv() function Pin
Brian Azzopardi8-Aug-02 22:19
Brian Azzopardi8-Aug-02 22:19 
zecodela wrote:
so, are there any method to make sure i can receive 5 times from recv()?

Not really. You will have to parse what the recv() call gives you. Anyway you should always check the data returned and run some sanity checks. Never trust what the network sends.

If you really wanted to split up the recvs you could either use setsockopt(SO_RCVBUF) to set the size of the recieve buffer. Becareful here as it might screw up performance or else pass a small-sized buffer to recv. Frankly I don't see why you should want 5 recvs(): it's better to get it all in one big buffer.

HTH
Brian Azzopardi

bibamus, edamus, cras moriemur
[eat, drink, for tomorrow we die]

GeneralRe: recv() function Pin
D Satya9-Aug-02 1:27
D Satya9-Aug-02 1:27 
QuestionFile join problem? Pin
chen8-Aug-02 16:31
chen8-Aug-02 16:31 
AnswerRe: File join problem? Pin
Nish Nishant8-Aug-02 17:28
sitebuilderNish Nishant8-Aug-02 17:28 
AnswerRe: File join problem? Pin
Jason Henderson8-Aug-02 17:45
Jason Henderson8-Aug-02 17:45 
GeneralRe: Dll Registration Pin
abhinarulkar8-Aug-02 23:05
abhinarulkar8-Aug-02 23:05 
GeneralThread Synchronization :: Win32 API vs. MFC Pin
valikac8-Aug-02 15:47
valikac8-Aug-02 15:47 
GeneralRe: Thread Synchronization :: Win32 API vs. MFC Pin
Nish Nishant8-Aug-02 17:24
sitebuilderNish Nishant8-Aug-02 17:24 
GeneralRe: Thread Synchronization :: Win32 API vs. MFC Pin
valikac8-Aug-02 17:27
valikac8-Aug-02 17:27 
GeneralChecksum Pin
Ed Gadziemski8-Aug-02 13:04
professionalEd Gadziemski8-Aug-02 13:04 
GeneralSending and Receiving Files Pin
fdmanana8-Aug-02 12:46
fdmanana8-Aug-02 12:46 
GeneralRe: Humm... Pin
Masaaki Onishi8-Aug-02 19:28
Masaaki Onishi8-Aug-02 19:28 
GeneralCreateFile & WriteFile Pin
Mavrock8-Aug-02 12:14
Mavrock8-Aug-02 12:14 
GeneralCPropertySheet - initialization Pin
john john mackey8-Aug-02 12:06
john john mackey8-Aug-02 12:06 
GeneralRe: CPropertySheet - initialization Pin
john john mackey8-Aug-02 12:27
john john mackey8-Aug-02 12:27 
QuestionBuggy Debug? Pin
dazinith8-Aug-02 11:36
dazinith8-Aug-02 11:36 
AnswerRe: Buggy Debug? Pin
Shog98-Aug-02 12:23
sitebuilderShog98-Aug-02 12:23 
GeneralRe: Buggy Debug? Pin
dazinith9-Aug-02 4:07
dazinith9-Aug-02 4:07 

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.