首页| 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
  • 大智若愚 4小时前 成为了本站会员

  • Mason 6小时前 成为了本站会员

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

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

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

  • 伟国 1天前 成为了本站会员

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

  • 纯色幽默 1天前 成为了本站会员

  • odd? 1天前 成为了本站会员

  • 52JOY... 1天前 成为了本站会员

0.175174s