🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17842

Port Address from Services file

#17842
From: Arumugam
Date: Tue, 29 Sep 1998 00:00
13 lines
891 bytes
I would like to write the service name and the port number / protocol in
the file services, which is kept in the windows directory.
Format : <service name> <port number>/<protocol>

Is there any command in JAVA to get that information from the services
file.
In C, I thing we can use getServbyname() function to get that port
address.

Thanks in advance

Arumugam
Mail : arumugam@mss.co.jp
Technical Details
Message-ID: <36104962.B71BD38E@mss.co.jp>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,ed3851cd46c13cc3,start
X-Google-Attributes: gidf74b3,public
From: Arumugam <arumugam@mss.co.jp>
Subject: Port Address from Services file
Date: 1998/09/29
Message-ID: <36104962.B71BD38E@mss.co.jp>
X-Deja-AN: 395843740
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=iso-2022-jp
Organization: MSS
Mime-Version: 1.0
Reply-To: arumugam@mss.co.jp
Newsgroups: borland.public.jbuilder.java.language