Click here to Skip to main content
16,011,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGet PocketPC's SD card size and free space from desktop through RAPI ? Pin
Kochise15-Sep-03 6:01
Kochise15-Sep-03 6:01 
GeneralDifferent Color values Pin
act_x15-Sep-03 5:23
act_x15-Sep-03 5:23 
GeneralRe: Different Color values Pin
David Crow15-Sep-03 6:13
David Crow15-Sep-03 6:13 
GeneralRe: Different Color values Pin
act_x15-Sep-03 6:27
act_x15-Sep-03 6:27 
GeneralMultiple Instance of Executable Pin
varadharajanS15-Sep-03 5:20
varadharajanS15-Sep-03 5:20 
GeneralRe: Multiple Instance of Executable Pin
Navin15-Sep-03 6:50
Navin15-Sep-03 6:50 
QuestionSame Socket in Two Threads? Pin
Lee Menningen15-Sep-03 4:47
sussLee Menningen15-Sep-03 4:47 
AnswerRe: Same Socket in Two Threads? Pin
antlers15-Sep-03 5:20
antlers15-Sep-03 5:20 
Usually, you just want to use the socket you get from Accept for both sending and receiving. You don't have to connect back to the client machine. The client will use the socket it uses to Connect for both sending and receiving as well.

You don't have to worry about "running out" of sockets on port 8000; once you've accepted a connection the port number isn't really used anyway. The only socket that's really bound to 8000 is the Listen socket.

If you are sending and receiving asynchronously, you can use the same socket in a send thread and a receive thread, or you can use the non-blocking functions and run the whole thing from one thread.
AnswerRe: Same Socket in Two Threads? Pin
valikac15-Sep-03 8:23
valikac15-Sep-03 8:23 
GeneralOverlapping CStatics Pin
eugi15-Sep-03 4:31
eugi15-Sep-03 4:31 
GeneralRe: Overlapping CStatics Pin
Shog915-Sep-03 5:51
sitebuilderShog915-Sep-03 5:51 
GeneralRe: Overlapping CStatics Pin
eugi15-Sep-03 6:03
eugi15-Sep-03 6:03 
GeneralCBrush link Pin
R. Thomas15-Sep-03 4:27
R. Thomas15-Sep-03 4:27 
QuestionOffice Automation - Converting Doc to RTF does not save Header/Footer? Pin
GTS202015-Sep-03 4:25
GTS202015-Sep-03 4:25 
AnswerRe: Office Automation - Converting Doc to RTF does not save Header/Footer? Pin
David Crow15-Sep-03 4:34
David Crow15-Sep-03 4:34 
GeneralRe: Office Automation - Converting Doc to RTF does not save Header/Footer? Pin
GTS202016-Sep-03 1:47
GTS202016-Sep-03 1:47 
GeneralRe: Office Automation - Converting Doc to RTF does not save Header/Footer? Pin
David Crow16-Sep-03 5:17
David Crow16-Sep-03 5:17 
GeneralHelp wanted to create a C++.NET DLL Pin
Eric de la Harpe15-Sep-03 3:37
Eric de la Harpe15-Sep-03 3:37 
Generalapplication wide global variables Pin
r i s h a b h s15-Sep-03 3:35
r i s h a b h s15-Sep-03 3:35 
GeneralRe: application wide global variables Pin
David Crow15-Sep-03 4:00
David Crow15-Sep-03 4:00 
GeneralRe: application wide global variables Pin
r i s h a b h s15-Sep-03 18:23
r i s h a b h s15-Sep-03 18:23 
GeneralRe: application wide global variables Pin
antlers15-Sep-03 5:23
antlers15-Sep-03 5:23 
GeneralRe: application wide global variables Pin
Johnny ²15-Sep-03 5:35
Johnny ²15-Sep-03 5:35 
GeneralRe: application wide global variables Pin
Alvaro Mendez15-Sep-03 6:25
Alvaro Mendez15-Sep-03 6:25 
GeneralRe: application wide global variables Pin
Johnny ²15-Sep-03 7:55
Johnny ²15-Sep-03 7:55 

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.