Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SendMessage Function .... Pin
Hamid_RT7-Aug-06 21:21
Hamid_RT7-Aug-06 21:21 
GeneralRe: SendMessage Function .... Pin
sach!!7-Aug-06 21:31
sach!!7-Aug-06 21:31 
QuestionMoving Ellipse Problem [modified] Pin
uday kiran janaswamy7-Aug-06 20:08
uday kiran janaswamy7-Aug-06 20:08 
AnswerRe: Moving Ellipse Problem Pin
Hamid_RT7-Aug-06 21:44
Hamid_RT7-Aug-06 21:44 
GeneralRe: Moving Ellipse Problem Pin
uday kiran janaswamy7-Aug-06 23:16
uday kiran janaswamy7-Aug-06 23:16 
GeneralRe: Moving Ellipse Problem Pin
Hamid_RT8-Aug-06 1:05
Hamid_RT8-Aug-06 1:05 
GeneralRe: Moving Ellipse Problem [modified] Pin
uday kiran janaswamy8-Aug-06 1:42
uday kiran janaswamy8-Aug-06 1:42 
GeneralRe: Moving Ellipse Problem Pin
Hamid_RT8-Aug-06 4:37
Hamid_RT8-Aug-06 4:37 
QuestionHow to resize application acoording to system resolution set? Pin
jadhav1237-Aug-06 19:02
jadhav1237-Aug-06 19:02 
AnswerRe: How to resize application acoording to system resolution set? Pin
mails2dhana7-Aug-06 19:33
mails2dhana7-Aug-06 19:33 
GeneralRe: How to resize application acoording to system resolution set? Pin
Naveen7-Aug-06 19:43
Naveen7-Aug-06 19:43 
GeneralRe: How to resize application acoording to system resolution set? Pin
Hamid_RT7-Aug-06 20:34
Hamid_RT7-Aug-06 20:34 
AnswerRe: How to resize application acoording to system resolution set? Pin
Naren Neelamegam7-Aug-06 21:05
Naren Neelamegam7-Aug-06 21:05 
QuestionDisable tab control Pin
see me7-Aug-06 17:50
see me7-Aug-06 17:50 
AnswerRe: Disable tab control Pin
Naveen7-Aug-06 18:54
Naveen7-Aug-06 18:54 
AnswerRe: Disable tab control Pin
Parthi_Appu7-Aug-06 19:20
Parthi_Appu7-Aug-06 19:20 
QuestionUser Process Memory Pin
Manish K. Agarwal7-Aug-06 17:39
Manish K. Agarwal7-Aug-06 17:39 
AnswerRe: User Process Memory Pin
Michael Dunn7-Aug-06 19:57
sitebuilderMichael Dunn7-Aug-06 19:57 
QuestionWinSock error with recv() function. Pin
Robert Palma Jr.7-Aug-06 16:35
Robert Palma Jr.7-Aug-06 16:35 
Vis C/C++ 6.0, Visual Studio

My program is a client to read a web page.

I am successfully setting up the socket.
The following calls and assignments are successful

WSAStartup()
memset(&sa,0,sizeof(sa));
sa.sin_family = AF_INET;
gethostbyname(gipaddrname); // example yahoo.com
memcpy(&sa.sin_addr, phe->h_addr, phe->h_length);
sa.sin_port = portn; //port 80 converted to net order
getprotobyname("tcp");
socktype = SOCK_STREAM;
sockdes = socket(PF_INET, socktype, ppe->p_proto);
connect(sockdes, (struct sockaddr *)&sa, sizeof(sa));

But when I go to receive the Servers 'hello'
message with:

recv(sockdes, pbufbin, len, 0);

I get the error:
WSAECONNABORTED The virtual circuit was terminated due to a time-out or other failure. The application should close the socket as it is no longer usable.

The strange thing is that I have used this exact code for
other servers, such a pop3 mail servers and servers that I wrote, all without a problem....

Any help would be much appreciated Smile | :)

Many thanks,
Robert


AnswerRe: WinSock error with recv() function. Pin
Kiran Pinjala7-Aug-06 20:19
Kiran Pinjala7-Aug-06 20:19 
GeneralRe: WinSock error with recv() function. Pin
Robert Palma Jr.8-Aug-06 6:30
Robert Palma Jr.8-Aug-06 6:30 
Questionerror Pin
thathvamsi7-Aug-06 16:10
thathvamsi7-Aug-06 16:10 
AnswerRe: error Pin
kakan7-Aug-06 19:27
professionalkakan7-Aug-06 19:27 
AnswerRe: error [modified] Pin
Parthi_Appu7-Aug-06 19:42
Parthi_Appu7-Aug-06 19:42 
GeneralRe: error Pin
kakan7-Aug-06 19:49
professionalkakan7-Aug-06 19:49 

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.