Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

djberg96/sys-host

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATION WARNING

This library is deprecated and has not been updated for many years. Please do not use this library. It was mainly a learning exercise for C extensions from my earliest days of Ruby when I was just learning how to write them. I'm fairly certain anything this library does the socket library in stdlib can already do.

This library will receive no further updates and the repository has been archived.

Description

An interface for getting host information.

Installation

gem install sys-host

Synopsis

require 'sys/host'
include Sys

p Host.hostname
p Host.ip_addr

Host.info{ |h|
  p h
}

Documentation

See the doc/host.txt file for more information.

About

A Ruby library that provides hostname and IP address information

Resources

Stars

Watchers

Forks

Packages

No packages published