Click here to Skip to main content
14,690,788 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WinSock error with recv() function. Pin
Robert Palma Jr.8-Aug-06 7:30
MemberRobert Palma Jr.8-Aug-06 7:30 
Questionerror Pin
thathvamsi7-Aug-06 17:10
Memberthathvamsi7-Aug-06 17:10 
AnswerRe: error Pin
kakan7-Aug-06 20:27
professionalkakan7-Aug-06 20:27 
AnswerRe: error [modified] Pin
Parthi_Appu7-Aug-06 20:42
MemberParthi_Appu7-Aug-06 20:42 
GeneralRe: error Pin
kakan7-Aug-06 20:49
professionalkakan7-Aug-06 20:49 
GeneralRe: error Pin
Parthi_Appu7-Aug-06 20:56
MemberParthi_Appu7-Aug-06 20:56 
AnswerRe: error Pin
Hamid_RT7-Aug-06 22:53
MemberHamid_RT7-Aug-06 22:53 
QuestionError in recv() Pin
wrjksdf7-Aug-06 16:48
Memberwrjksdf7-Aug-06 16:48 
Hi,

I have created a TCP connection between client and server. On client system I do socket(), bind(), connect() and recv()/send(). I do recv() and send() simultaneously in two threads.

The program works fine for some time (1-2 minutes), but after some time, recv() returns SOCKET_ERROR. WSAGetLastError() returns error code of 12. Any suggestions on how to solve this problem?

I am sending about 20 packets per second (at a rate of 100kbps). I am receiving about same number of packets although bitrate is much lesser.

Any help will be highly appreciated.

Thanks very much in advance.

Regards

RS
AnswerRe: Error in recv() Pin
Robert Palma Jr.7-Aug-06 17:41
MemberRobert Palma Jr.7-Aug-06 17:41 
AnswerRe: Error in recv() Pin
wrjksdf7-Aug-06 17:58
Memberwrjksdf7-Aug-06 17:58 
GeneralRe: Error in recv() Pin
wrjksdf7-Aug-06 18:25
Memberwrjksdf7-Aug-06 18:25 
QuestionEditbox Right click problem Pin
LaHaHa7-Aug-06 15:41
MemberLaHaHa7-Aug-06 15:41 
AnswerRe: Editbox Right click problem Pin
valikac7-Aug-06 16:05
Membervalikac7-Aug-06 16:05 
GeneralRe: Editbox Right click problem Pin
LaHaHa7-Aug-06 16:57
MemberLaHaHa7-Aug-06 16:57 
GeneralRe: Editbox Right click problem Pin
_AnsHUMAN_ 7-Aug-06 18:27
Member_AnsHUMAN_ 7-Aug-06 18:27 
GeneralRe: Editbox Right click problem Pin
LaHaHa7-Aug-06 18:32
MemberLaHaHa7-Aug-06 18:32 
GeneralRe: Editbox Right click problem Pin
_AnsHUMAN_ 7-Aug-06 18:37
Member_AnsHUMAN_ 7-Aug-06 18:37 
GeneralRe: Editbox Right click problem Pin
LaHaHa7-Aug-06 19:18
MemberLaHaHa7-Aug-06 19:18 
AnswerRe: Editbox Right click problem Pin
Hamid_RT8-Aug-06 7:56
MemberHamid_RT8-Aug-06 7:56 
QuestionWait for process initialization after CreateProcess API? Pin
MohammadAmiry7-Aug-06 15:22
MemberMohammadAmiry7-Aug-06 15:22 
AnswerRe: Wait for process initialization after CreateProcess API? Pin
Michael Dunn7-Aug-06 15:28
sitebuilderMichael Dunn7-Aug-06 15:28 
GeneralRe: Wait for process initialization after CreateProcess API? Pin
MohammadAmiry8-Aug-06 5:08
MemberMohammadAmiry8-Aug-06 5:08 
QuestionWindow sizing problem in CFormView app Pin
RoyceF7-Aug-06 13:29
MemberRoyceF7-Aug-06 13:29 
AnswerRe: Window sizing problem in CFormView app Pin
Hamid_RT7-Aug-06 21:43
MemberHamid_RT7-Aug-06 21:43 
QuestionRe: Window sizing problem in CFormView app Pin
David Crow8-Aug-06 3:48
MemberDavid Crow8-Aug-06 3:48 

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.