Click here to Skip to main content
14,668,361 members
Home » Discussions » ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: get a number into static text control Pin
bkelly1314-Sep-12 15:00
Memberbkelly1314-Sep-12 15:00 
GeneralRe: get a number into static text control Pin
Paul M Watt14-Sep-12 15:36
mentorPaul M Watt14-Sep-12 15:36 
GeneralRe: get a number into static text control Pin
Richard MacCutchan14-Sep-12 23:02
mveRichard MacCutchan14-Sep-12 23:02 
GeneralRe: get a number into static text control Pin
bkelly1315-Sep-12 5:14
Memberbkelly1315-Sep-12 5:14 
GeneralRe: get a number into static text control Pin
Richard MacCutchan15-Sep-12 5:42
mveRichard MacCutchan15-Sep-12 5:42 
QuestionMirroring system imagelist Pin
Huzifa Terkawi11-Sep-12 15:27
MemberHuzifa Terkawi11-Sep-12 15:27 
QuestionCAsyncSocket, first application Pin
bkelly139-Sep-12 5:26
Memberbkelly139-Sep-12 5:26 
AnswerRe: CAsyncSocket, first application Pin
Paul M Watt14-Sep-12 15:47
mentorPaul M Watt14-Sep-12 15:47 
The call to Listen is opening a socket for your server and it basically says "I'm interested in new requests..."

All that is happening at this point is some state has been setup.
The call to accept is actually where the connection is made. The variable m_sConnected is the variable that will receive the new connected socket. Notice how the rest of the calls made if Accept() succeeds are performed on m_sConnected.

In the meantime, m_sListener is still there ready to accept more connections. So if you start another client and then call Accept() with another socket variable, you would have two active client sessions in your application.
All of my software is powered by a single Watt.

QuestionAfxGetThread vs GetCurrentThreadID Pin
kishorekumarnaik6-Sep-12 6:52
Memberkishorekumarnaik6-Sep-12 6:52 
AnswerRe: AfxGetThread vs GetCurrentThreadID Pin
Jiří Miklík7-Sep-12 0:24
MemberJiří Miklík7-Sep-12 0:24 
Questionerror C2039: 'abort' : is not a member of 'std' Pin
KASR12-Sep-12 23:35
MemberKASR12-Sep-12 23:35 
AnswerRe: error C2039: 'abort' : is not a member of 'std' Pin
Richard MacCutchan3-Sep-12 0:50
mveRichard MacCutchan3-Sep-12 0:50 
GeneralRe: error C2039: 'abort' : is not a member of 'std' Pin
KASR13-Sep-12 1:44
MemberKASR13-Sep-12 1:44 
GeneralRe: error C2039: 'abort' : is not a member of 'std' Pin
Richard MacCutchan3-Sep-12 2:21
mveRichard MacCutchan3-Sep-12 2:21 
AnswerRe: error C2039: 'abort' : is not a member of 'std' Pin
Stephen Hewitt3-Sep-12 16:54
MemberStephen Hewitt3-Sep-12 16:54 
GeneralRe: error C2039: 'abort' : is not a member of 'std' Pin
KASR13-Sep-12 19:46
MemberKASR13-Sep-12 19:46 
GeneralRe: error C2039: 'abort' : is not a member of 'std' Pin
Richard MacCutchan3-Sep-12 22:18
mveRichard MacCutchan3-Sep-12 22:18 
GeneralRe: error C2039: 'abort' : is not a member of 'std' Pin
KASR13-Sep-12 22:29
MemberKASR13-Sep-12 22:29 
GeneralRe: error C2039: 'abort' : is not a member of 'std' Pin
Richard MacCutchan3-Sep-12 23:23
mveRichard MacCutchan3-Sep-12 23:23 
GeneralRe: error C2039: 'abort' : is not a member of 'std' Pin
KASR14-Sep-12 2:36
MemberKASR14-Sep-12 2:36 
GeneralHow to print file inclusion stack in VC6 Pin
KASR16-Aug-12 23:43
MemberKASR16-Aug-12 23:43 
Questionc++ and directshow Pin
mexmerou4-Aug-12 0:04
Membermexmerou4-Aug-12 0:04 
AnswerRe: c++ and directshow Pin
Richard MacCutchan4-Aug-12 1:29
mveRichard MacCutchan4-Aug-12 1:29 
AnswerRe: c++ and directshow Pin
barneyman7-Aug-12 19:52
Memberbarneyman7-Aug-12 19:52 
AnswerRe: c++ and directshow Pin
jk chan15-Aug-12 20:33
Memberjk chan15-Aug-12 20:33 

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.