Click here to Skip to main content
16,004,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Process dependencies Pin
nmx_de25-Sep-06 23:47
nmx_de25-Sep-06 23:47 
GeneralRe: Process dependencies Pin
nutkase26-Sep-06 0:02
nutkase26-Sep-06 0:02 
AnswerRe: Process dependencies Pin
Hamid_RT25-Sep-06 23:39
Hamid_RT25-Sep-06 23:39 
GeneralRe: Process dependencies Pin
Waldermort25-Sep-06 23:52
Waldermort25-Sep-06 23:52 
GeneralRe: Process dependencies Pin
Hamid_RT26-Sep-06 3:34
Hamid_RT26-Sep-06 3:34 
AnswerRe: Process dependencies Pin
nmx_de26-Sep-06 2:38
nmx_de26-Sep-06 2:38 
QuestionSystem menu in child window Pin
Anu_Bala25-Sep-06 21:37
Anu_Bala25-Sep-06 21:37 
Questionwinsock send/recv problem Pin
_tasleem25-Sep-06 21:25
_tasleem25-Sep-06 21:25 
hi all i had made application that send() recv() through winsock API's not the MFC classes and winsock controll.
when i send one time it works fine and receives well but when i send more than once at a time
i.e
 if((send(conn,"11",strlen("13"),0))==2)<br />
     AfxMessageBox("11");<br />
     if((send(conn,"12",strlen("13"),0))==2)<br />
     AfxMessageBox("11");<br />
     if((send(conn,"13",strlen("13"),0))==2)<br />
     AfxMessageBox("13");<br />
and then closing the sockets<br />

other side cannot receive anything i mean it receive 0 bytes.i m using the receive side in for loop here is the code.
for (int i=0;i<3;i++)<br />
 {<br />
	int numbytes;<br />
	char buf[5];<br />
	if((numbytes=recv(new_fd,buf,strlen(buf),0))==0)<br />
	 	AfxMessageBox("Conn Forcefully Rejected Receive Error");<br />
	 else<br />
	   {<br />
	   buf[(numbytes+1)] = '\0';<br />
	   AfxMessageBox(buf);<br />
          } <br />
 }
and then it closes sockets also.
but it shows the conn forefully rejected receive error.
i dont why it is this.


Tasleem Arif

AnswerRe: winsock send/recv problem Pin
Sakthiu25-Sep-06 23:30
Sakthiu25-Sep-06 23:30 
GeneralRe: winsock send/recv problem Pin
_tasleem25-Sep-06 23:50
_tasleem25-Sep-06 23:50 
GeneralRe: winsock send/recv problem Pin
Hamid_RT26-Sep-06 6:57
Hamid_RT26-Sep-06 6:57 
AnswerRe: winsock send/recv problem Pin
nutkase25-Sep-06 23:58
nutkase25-Sep-06 23:58 
GeneralRe: winsock send/recv problem Pin
_tasleem26-Sep-06 21:01
_tasleem26-Sep-06 21:01 
QuestionRecord File Pin
Rahul.RK25-Sep-06 21:21
Rahul.RK25-Sep-06 21:21 
QuestionButton location of button on toolbar Pin
shivditya25-Sep-06 21:04
shivditya25-Sep-06 21:04 
Questionproblem Pin
amaneet25-Sep-06 20:56
amaneet25-Sep-06 20:56 
QuestionString formatting Pin
Mohammad A Gdeisat25-Sep-06 20:50
Mohammad A Gdeisat25-Sep-06 20:50 
AnswerRe: String formatting Pin
_AnsHUMAN_ 25-Sep-06 21:00
_AnsHUMAN_ 25-Sep-06 21:00 
AnswerThe STL way... Pin
Rob Caldecott25-Sep-06 23:12
Rob Caldecott25-Sep-06 23:12 
GeneralTemplate version [modified] Pin
Rob Caldecott25-Sep-06 23:17
Rob Caldecott25-Sep-06 23:17 
AnswerRe: String formatting Pin
Hamid_RT25-Sep-06 23:14
Hamid_RT25-Sep-06 23:14 
GeneralRe: String formatting Pin
David Crow26-Sep-06 3:20
David Crow26-Sep-06 3:20 
GeneralRe: String formatting Pin
Hamid_RT26-Sep-06 3:44
Hamid_RT26-Sep-06 3:44 
AnswerRe: String formatting Pin
David Crow26-Sep-06 3:21
David Crow26-Sep-06 3:21 
QuestionFatalExecutionEngineError was detected Pin
K. narasimharao25-Sep-06 20:23
K. narasimharao25-Sep-06 20:23 

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.