Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Reply-To: cygwin 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?= CC: cygwin AT sourceware DOT cygnus DOT com Subject: Re: Windows and Linux native Sockets (NBY) References: <003201bfe417$b9de5640$b98619d4 AT pc> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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