Click here to Skip to main content
15,888,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: bmfh.bfType != 0x4d42 Pin
CPallini28-Nov-07 2:03
mveCPallini28-Nov-07 2:03 
QuestionA big Q Pin
keyto28-Nov-07 1:17
keyto28-Nov-07 1:17 
AnswerRe: A big Q Pin
CPallini28-Nov-07 2:24
mveCPallini28-Nov-07 2:24 
QuestionRe: A big Q Pin
David Crow28-Nov-07 3:01
David Crow28-Nov-07 3:01 
QuestionRe: A big Q Pin
Hamid_RT29-Nov-07 4:28
Hamid_RT29-Nov-07 4:28 
QuestionIOCP server Pin
Jhony george28-Nov-07 1:15
Jhony george28-Nov-07 1:15 
AnswerRe: IOCP server Pin
Cedric Moonen28-Nov-07 1:44
Cedric Moonen28-Nov-07 1:44 
QuestionRe: IOCP server [modified] Pin
Jhony george28-Nov-07 1:57
Jhony george28-Nov-07 1:57 
hai,
thanks for reply, here is my code :

1.for (int ii = 0; ii < nNoOfThreads; ii++)
2.{
3.b = CreateConnectedSocket(&(pThreadInfo[ii].m_Socket),"192.168.60.206", nPortNo);

4.if(b)
5.{
6. pThreadInfo[ii].m_nThreadNo = ii+1;
7. p_hThreads[ii] = CreateThread(NULL, 4096, WorkerThread,(void *)(&pThreadInfo[ii]), STACK_SIZE_PARAM_IS_A_RESERVATION, &nThreadID);
8.}

in for loop "nNoOfThreads= 4500",
and the 3rd line i am creating socket, and trying to connect with passed parameters.

now..each 4500 sockets has o create,
den create thread will take care of message send and receving...

now the issue is only 3969 sockets are created... and the 3969 threads are created.


Mani.




Born to win...!

AnswerRe: IOCP server Pin
Cedric Moonen28-Nov-07 2:18
Cedric Moonen28-Nov-07 2:18 
GeneralRe: IOCP server Pin
Jhony george28-Nov-07 2:26
Jhony george28-Nov-07 2:26 
GeneralRe: IOCP server Pin
Mark Salsbery28-Nov-07 5:32
Mark Salsbery28-Nov-07 5:32 
GeneralRe: IOCP server Pin
Mike Dimmick28-Nov-07 5:55
Mike Dimmick28-Nov-07 5:55 
GeneralRe: IOCP server Pin
Mark Salsbery28-Nov-07 6:08
Mark Salsbery28-Nov-07 6:08 
AnswerRe: IOCP server Pin
Mark Salsbery28-Nov-07 5:26
Mark Salsbery28-Nov-07 5:26 
AnswerRe: IOCP server Pin
Mike Dimmick28-Nov-07 5:43
Mike Dimmick28-Nov-07 5:43 
QuestionLPBITMAPINFOHEADER Pin
keyto28-Nov-07 0:49
keyto28-Nov-07 0:49 
AnswerRe: LPBITMAPINFOHEADER Pin
CPallini28-Nov-07 0:57
mveCPallini28-Nov-07 0:57 
AnswerRe: LPBITMAPINFOHEADER Pin
David Crow28-Nov-07 3:03
David Crow28-Nov-07 3:03 
QuestionHow to use VC++ Unit Test project to test C++ project Pin
lchild38528-Nov-07 0:09
lchild38528-Nov-07 0:09 
QuestionVC 2005 compiler error Pin
neha.agarwal2728-Nov-07 0:01
neha.agarwal2728-Nov-07 0:01 
AnswerRe: VC 2005 compiler error Pin
toxcct28-Nov-07 0:21
toxcct28-Nov-07 0:21 
GeneralRe: VC 2005 compiler error Pin
neha.agarwal2728-Nov-07 0:31
neha.agarwal2728-Nov-07 0:31 
GeneralRe: VC 2005 compiler error Pin
CPallini28-Nov-07 0:45
mveCPallini28-Nov-07 0:45 
GeneralRe: VC 2005 compiler error Pin
neha.agarwal2728-Nov-07 1:00
neha.agarwal2728-Nov-07 1:00 
GeneralRe: VC 2005 compiler error Pin
David Crow29-Nov-07 2:45
David Crow29-Nov-07 2:45 

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.