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

C / C++ / MFC

 
GeneralRe: Toolbar with external icons Pin
Michael Dunn13-Mar-03 2:31
sitebuilderMichael Dunn13-Mar-03 2:31 
GeneralRe: Toolbar with external icons Pin
ablaze13-Mar-03 8:47
ablaze13-Mar-03 8:47 
QuestionSOCKETS - break the blocking "listen" command? Pin
Daniel Strigl13-Mar-03 0:25
Daniel Strigl13-Mar-03 0:25 
AnswerRe: SOCKETS - break the blocking "listen" command? Pin
Rickard Andersson2013-Mar-03 2:08
Rickard Andersson2013-Mar-03 2:08 
GeneralRe: SOCKETS - break the blocking "listen" command? Pin
Daniel Strigl13-Mar-03 2:40
Daniel Strigl13-Mar-03 2:40 
GeneralRe: SOCKETS - break the blocking "listen" command? Pin
Rickard Andersson2013-Mar-03 3:39
Rickard Andersson2013-Mar-03 3:39 
AnswerRe: SOCKETS - break the blocking "listen" command? Pin
Moak13-Mar-03 4:12
Moak13-Mar-03 4:12 
AnswerRe: SOCKETS - break the blocking "listen" command? Pin
TomKat14-Mar-03 15:17
TomKat14-Mar-03 15:17 
your problem is tricky !
when you listen the thread simply freezes ! right ?
you have to do this listening and accepting of clients on another thread :

unsigned _stdcall thAccept(void *lParam)
{
while(true)
{
SOCKET mSock=accept((SOCKET)lParam);
}
return 1;
}

SOCKET sock=create a server ;

UINT thAcc=0;
if(thAcc)
_endthreadex(thAcc);
_beginthreadex(NULL,0,&thAccept,(void*)sock,0,&thAcc);
return 1;

see ...

be cool and rate me Smile | :)


I am the mighty keeper of the book on knowledge . Contact me to get your copy .
GeneralWindows Pin
satyavasu12-Mar-03 21:16
satyavasu12-Mar-03 21:16 
GeneralFinding the Process/Thread that created a window Pin
Paul Farry12-Mar-03 20:57
professionalPaul Farry12-Mar-03 20:57 
GeneralRe: Finding the Process/Thread that created a window Pin
Dudi Avramov12-Mar-03 21:14
Dudi Avramov12-Mar-03 21:14 
GeneralRe: Finding the Process/Thread that created a window Pin
Hesham Amin12-Mar-03 21:19
Hesham Amin12-Mar-03 21:19 
GeneralRe: Finding the Process/Thread that created a window Pin
Dudi Avramov13-Mar-03 1:24
Dudi Avramov13-Mar-03 1:24 
Generalsnoop de driver Pin
el davo12-Mar-03 20:03
el davo12-Mar-03 20:03 
GeneraltimeSetEvent() and priority Pin
Anonymous12-Mar-03 17:38
Anonymous12-Mar-03 17:38 
GeneralRe: timeSetEvent() and priority Pin
SankaranPV13-Mar-03 2:54
SankaranPV13-Mar-03 2:54 
GeneralRe: timeSetEvent() and priority Pin
Jim A. Johnson12-Mar-03 17:52
Jim A. Johnson12-Mar-03 17:52 
GeneralRe: timeSetEvent() and priority Pin
Anonymous12-Mar-03 18:08
Anonymous12-Mar-03 18:08 
GeneralDB Library Pin
satyavasu12-Mar-03 16:43
satyavasu12-Mar-03 16:43 
Generaldelete directory Pin
includeh1012-Mar-03 15:49
includeh1012-Mar-03 15:49 
GeneralRe: delete directory Pin
anju12-Mar-03 16:14
anju12-Mar-03 16:14 
GeneralRe: delete directory Pin
includeh1012-Mar-03 16:21
includeh1012-Mar-03 16:21 
GeneralRe: delete directory Pin
Abin12-Mar-03 17:17
Abin12-Mar-03 17:17 
GeneralRe: delete directory Pin
Rickard Andersson2012-Mar-03 20:53
Rickard Andersson2012-Mar-03 20:53 
GeneralRe: delete directory Pin
TomKat14-Mar-03 15:18
TomKat14-Mar-03 15:18 

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.