This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Ecos-Socket Error
- To: Anagha Anil Bhopale <anagha dot bhopale at wipro dot com>
- Subject: Re: [ECOS] Ecos-Socket Error
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- Date: Thu, 11 Oct 2001 15:24:38 +0200
- Cc: eCos Disuss <ecos-discuss at sourceware dot cygnus dot com>
- References: <3BC57058.99A8F16B@wipro.com>
On Thu, Oct 11, 2001 at 03:41:36PM +0530, Anagha Anil Bhopale wrote:
> The error is:
> Socket error: No error
> bind error: Can't assign requested address
>
> I've have used
> iSocket_Descriptor=socket(PF_INET,SOCK_STREAM,6)
> to create the socket.
Why pass 6 as the protocol? My linux man page tcp(7) says the protocol
should be 0.
Andrew