Re: Connect call fails.

From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 04/27/05


Date: Wed, 27 Apr 2005 00:46:41 -0400

In article <1114572274.076660.142900@f14g2000cwb.googlegroups.com>,
 amitraj.trehan@gmail.com wrote:

> Hi,
> I am writing my first socket program and I am getting the error 111
> (Connection refused). Can someone please tell me what am I doing wrong
> in the program.
>
> When i run the client program without running the server, the connect
> call still fails. I would really appreciate your help.

That's to be expected. You can't connect to a socket if there's no
server listening for connections.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***