Link Search Menu Expand Document

Net

Table of contents

  1. Net
    1. Net.parseIp4(String) -> Result<List>

Net

To make use of the Net module an import is required.

import Net;

Net.parseIp4(String) -> Result<List>

parseIp4 takes a string representation of an IP4 address and returns a Result that unwraps to list containing an entry for each octet.

Net.parseIp4("10.0.0.2").unwrap();
// [10, 0, 0, 2]

This site uses Just The Docs, with modifications.