class Net::IPMask

Overview

IPMask is an IP address

Defined in:

net/ip.cr

Class Method Summary

Instance Method Summary

Instance methods inherited from class Net::IPBase

==(other : self) ==, hash(hasher) hash

Constructor methods inherited from class Net::IPBase

new(ptr : Pointer(UInt8), size : Int)
new(size : Int)
new(size : Int, &block)
new

Class methods inherited from class Net::IPBase

empty empty

Class Method Detail

def self.parse(s : String) #

[View source]

Instance Method Detail

def mask_size #

mask_size returns the number of leading ones and total bits in the mask. If the mask is not in the canonical form--ones followed by zeros--then mask_size returns 0, 0.


[View source]
def to_s #

returns the hexadecimal form of mask, with no punctuation.


[View source]