首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > Scala库为代表的IPv4地址,网络,和相关概念

Scala库为代表的IPv4地址,网络,和相关概念

资 源 简 介

scala-ipv4 is a Scala library for IPv4 related concepts such as IP addresses, network masks, address pools, etc. Key Concepts IpAddress IpAddress represents an IPv4 address. val address = new IpAddress("192.168.0.1") IpAddress can be used to make calculations on IP addresses, such as finding the next address. val address = new IpAddress("192.168.0.1")val next = address + 1println(next == new IpAddress("192.168.0.2")) // prints true IpAddressRange IpAddressRange represents a continuous range of consecutive addresses. val range = new IpAddressRange(new IpAddress("192.168.0.1"), new IpAddress("192.168.0.5"))println(range.contains(new IpAddress("192.168.0.3")) // prints true IpNetworkMask IpNetworkMask represents a network mask, to be used in an IpNetwork. ``` val mask1 = new IpN

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • 猕猴桃 3小时前 成为了本站会员

  • 11 7小时前 成为了本站会员

  • 开心快活人 10小时前 成为了本站会员

  • 晋财 11小时前 成为了本站会员

  • WYG 1天前 成为了本站会员

  • Shine 1天前 成为了本站会员

  • 柳贻 1天前 成为了本站会员

  • hallelujah_HL 1天前 成为了本站会员

  • 焦昱贺 1天前 成为了本站会员

  • Rubin 1天前 成为了本站会员

0.162506s