Skip to content
Ron Hashimoto edited this page Aug 3, 2016 · 2 revisions

IPv6Address represents an Internet Protocol version 6 address.

Usage

import {Buffer} from 'dripcap';
import IPv6Address from 'dripcap/ipv6/addr';

let addr = new IPv6Address(new Buffer([...]));

Reference

Methods

#constructor (Buffer addr) -> IPv6Address

Constructs a IPv6Address from a Buffer. addr.length must be 4.

#equals (IPv6Address addr) -> Boolean

Returns true if this and the given IPv6Address has the same address.

#toString () -> String

Returns a string representing the address.

#toJSON () -> String

JSON serializer interface.

#toMsgpack () -> Array

MessagePack serializer interface.

Clone this wiki locally