www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/08/10/11:49:47

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com 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: <006501bee346$59a9f900$02af6080@sokhapki-2.cc.bellcore.com>
From: "Sergey Okhapkin" <sos AT prospect DOT com DOT ru>
To: "Philippe Noel" <pnoel AT socoint DOT com>,
"Cygwin-List" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: Problems with /etc/services & getservbyname() function
Date: Tue, 10 Aug 1999 11:38:10 -0400
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3612.1700
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700

>I'm currently trying to use the function "getservbyname" and I have
problems
>with.  I do not find any hints on the mailing-list archive nor in the FAQ,
>but I saw the function is supported by Cygwin.
>
>The getservbyname() function returns a servent structure for the line from
>/etc/services that matches the service name using protocol proto. I
>installed the file /etc/services like it is on my Linux system.
>


getservbyname() function calls corresponding winsock function. Winsock
searches for services file in %SystemRoot%/system32/drivers/etc directory on
NT and in %WinDir% on Win9x.

Sergey Okhapkin, http://www.lexa.ru/sos
Piscataway, NJ



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