Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Thu, 27 Oct 2005 09:45:12 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Invalid argument error when using recvfrom
Message-ID: <20051027074512.GB28394@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <435FC398.8000508@verizon.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <435FC398.8000508@verizon.net>
User-Agent: Mutt/1.4.2i

On Oct 26 13:57, Fernando Barsoba wrote:
> Hi all,
> 
> Using raw sockets with cygwin is being really painful... After being 
> able to create an IP datagram using the latest snapshot now I'm getting 
> the error "Invalid argument" when calling recvfrom() without doing BIND 
> first.
> 
> There is no need to call bind() before recvfrom when using raw sockets. 
> Why am i getting this error now? Some restriction with winsock?

Probably.  When using raw sockets with Cygwin, you're really in the
hands of Winsock, which has a couple of restrictions in that matter.
I'd suggest to have a look into MSDN which elaborates a bit on the usage
of raw sockets.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

