delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/10/26/13:57:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 26 Oct 2005 13:57:44 -0400
From: Fernando Barsoba <fbarsoba AT verizon DOT net>
Subject: Invalid argument error when using recvfrom
To: cygwin AT cygwin DOT com
Message-id: <435FC398.8000508@verizon.net>
MIME-version: 1.0
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-IsSubscribed: yes

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?

I create the socket with:
sd = socket(AF_INET, SOCK_RAW, IPPROTO_RAW);

I will appreciate any help..

FBM



--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019