delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/27/23:43:18

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <001701c147cf$8da9c380$0300005a@thedixons2.com>
Reply-To: "Dan Dixon" <ddixon AT peakpeak DOT com>
From: "Dan Dixon" <ddixon AT peakpeak DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Socket creation fails, passes under activestate
Date: Thu, 27 Sep 2001 21:42:08 -0600
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

Running WinME, cygwin 1.1.8-2, perl 5.6.1-1

The following script works fine when run with
activestate perl on the same machine.  When
run under cygwin connect() returns:
"The descriptor is a file, not a socket"

#!/usr/bin/perl
use Socket;
my $proto = getprotobyname('tcp');
socket('F', PF_INET, SOCK_STREAM, $proto);
my $sin = sockaddr_in(110,inet_aton('pop.netaddress.com'));
connect('F',$sin) || die $!;    #<-- dies here, connect returns undef
                                          # $!: "The descriptor is a file,
not a socket"
$stuff = <F>;
print "$stuff\n";
close F;

This is a new problem and all this used to work before
I deleted and re-added my TCP-IP -> lan adapter.

ftp, http, manual telnet to port 80's all work fine from
cygwin command line.  It core dumps when I try to
use the activestate socket library with the cygwin
executable (probably not a surprise, but I thought
I'd try it anyway).  I have completely removed and
reinstalled the cygwin release (including all tools
and perl).  I have completely removed and reinstalled
by lan adapter.  No luck.

Perl-cygwin rocks and I have come to depend on it.
ANY help is appreciated.  Thanks...


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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