delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/02/08:39:10

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <395F37CB.317B6910@cygnus.com>
Date: Sun, 02 Jul 2000 14:38:35 +0200
From: Corinna Vinschen <vinschen AT cygnus DOT com>
Reply-To: cygwin <cygwin AT sourceware DOT cygnus DOT com>
X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.14-SMP i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: Daniel =?iso-8859-1?Q?Mach=EDn?= <dmachin AT teleline DOT es>
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Windows and Linux native Sockets (NBY)
References: <003201bfe417$b9de5640$b98619d4 AT pc>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id IAA19468

Daniel Machín wrote:
> Cygwin doesn't include udp.h and other netinet includes. Is it possible to find those files anywhere on internet? Or, otherwise, it is impossible to use Linux Native sockets when sending UDP datagrams and we have to use WinSockets? Also, where can I download mywinsock.h (lots of people writing about that on the archive) and how can I use it?

You'll have to use wsock2 but when working with Cygwin you
don't have to care about. Cygwin has wrapper functions which hide
that fact.

Simply use the standard socket calls. The restriction is that only
PF_INET and PF_UNIX/PF_LOCAL protocol families are usable.

If you need udp.h, try using (and patching) the file of your linux box.
Same for other ip header description files.
Be aware that using SOCK_RAW on NT/W2K requires admin privileges.

`mywinsock.h' is obsolete stuff and the latest references are from
1998, AFAICS.

Corinna 

-- 
Corinna Vinschen
Cygwin Developer
Cygnus Solutions, a Red Hat company

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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