Re: Connect call fails.
From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 04/27/05
- Next message: James Antill: "Re: File name from stream"
- Previous message: Arkady Duntov: "Re: The Harm of hard-wrapping Lines"
- In reply to: amitraj.trehan_at_gmail.com: "Connect call fails."
- Next in thread: amitraj.trehan_at_gmail.com: "Re: Connect call fails."
- Reply: amitraj.trehan_at_gmail.com: "Re: Connect call fails."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 ***
- Next message: James Antill: "Re: File name from stream"
- Previous message: Arkady Duntov: "Re: The Harm of hard-wrapping Lines"
- In reply to: amitraj.trehan_at_gmail.com: "Connect call fails."
- Next in thread: amitraj.trehan_at_gmail.com: "Re: Connect call fails."
- Reply: amitraj.trehan_at_gmail.com: "Re: Connect call fails."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]