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

C / C++ / MFC

 
AnswerRe: FILE* problem Pin
Aescleal1-Jun-10 20:28
Aescleal1-Jun-10 20:28 
AnswerRe: FILE* problem Pin
Jackson20102-Jun-10 5:08
Jackson20102-Jun-10 5:08 
QuestionBitBLT question Pin
ForNow1-Jun-10 17:28
ForNow1-Jun-10 17:28 
AnswerRe: BitBLT question Pin
«_Superman_»1-Jun-10 20:08
professional«_Superman_»1-Jun-10 20:08 
GeneralRe: BitBLT question Pin
ForNow2-Jun-10 1:29
ForNow2-Jun-10 1:29 
GeneralRe: BitBLT question I think I have to paint into a memry DC Pin
ForNow2-Jun-10 6:47
ForNow2-Jun-10 6:47 
QuestionC++ Socket Number - duration of socket number in server program Pin
simon alec smith1-Jun-10 12:01
simon alec smith1-Jun-10 12:01 
AnswerRe: C++ Socket Number - duration of socket number in server program Pin
Moak1-Jun-10 22:27
Moak1-Jun-10 22:27 
Basically your question is, if the operating system reuses socket handles?

Yes, I would guess that with a long running server application there is no other way for the operating system. On Windows this definitely happens, see Winsock Programmer's FAQ[^]. In my networking applications I separate session/user handling from low-level networking, which means every user gets a unique ID assigned. There are many ways to create an ID, for example use the current UTC time paired with a random value. Alternatively, if you just need an unique internal reference, you could use this pointer of your C++ object.

Not sure if this answered your question?
M

Chat in Europe Java | [Coffee] Now with 24% more Twitter


QuestionSynchronise Contacts with Exchange Server Mailboxes Pin
Steve Thresher1-Jun-10 8:03
Steve Thresher1-Jun-10 8:03 
Questionmouse related Q Pin
a.k.a BT1-Jun-10 7:19
a.k.a BT1-Jun-10 7:19 
AnswerRe: mouse related Q Pin
Richard MacCutchan1-Jun-10 7:59
mveRichard MacCutchan1-Jun-10 7:59 
GeneralRe: mouse related Q Pin
a.k.a BT1-Jun-10 8:17
a.k.a BT1-Jun-10 8:17 
GeneralRe: mouse related Q Pin
a.k.a BT1-Jun-10 8:59
a.k.a BT1-Jun-10 8:59 
GeneralRe: mouse related Q Pin
Richard MacCutchan1-Jun-10 21:23
mveRichard MacCutchan1-Jun-10 21:23 
AnswerRe: mouse related Q Pin
Software_Developer1-Jun-10 8:59
Software_Developer1-Jun-10 8:59 
GeneralRe: mouse related Q Pin
a.k.a BT1-Jun-10 9:09
a.k.a BT1-Jun-10 9:09 
AnswerRe: mouse related Q Pin
Stephen Hewitt1-Jun-10 16:56
Stephen Hewitt1-Jun-10 16:56 
QuestionProblem with Modeless dialogs Pin
Sreenivas0031-Jun-10 5:28
Sreenivas0031-Jun-10 5:28 
AnswerRe: Problem with Modeless dialogs Pin
Sarath C1-Jun-10 14:37
Sarath C1-Jun-10 14:37 
QuestionChild Window Pin
john56321-Jun-10 4:20
john56321-Jun-10 4:20 
AnswerRe: Child Window Pin
Niklas L1-Jun-10 5:16
Niklas L1-Jun-10 5:16 
AnswerRe: Child Window [modified] Pin
Software_Developer1-Jun-10 9:02
Software_Developer1-Jun-10 9:02 
QuestionPrint text that looks hollow Pin
DanYELL1-Jun-10 4:19
DanYELL1-Jun-10 4:19 
AnswerRe: Print text that looks hollow Pin
Code-o-mat1-Jun-10 4:45
Code-o-mat1-Jun-10 4:45 
QuestionClicking on StatusBar Pin
Software20071-Jun-10 3:17
Software20071-Jun-10 3:17 

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.