IPv4 and IPv6 on advanced records lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- Maciej Kaczkowski · 2013-02-20 20:05 Hi, I wrote new unit for IPv4 and IPv6 operations. It may be useful to you. Features: * easy to use * validation of IPv4 and IPv6 * IPv4 formatting   * IP address (192.168.1.1)   * Double Word (3232235777)   * HEX (C0.A8.01.01)   * BIN (11000000.10101000.00000001.00000001) * IPv6 formatting   * extended (0000:0000:0000:0000:0000:0000:0000:0001)   * alternative (0:0:0:0:0:0:0:1)   * compressed (::1) * convert IPv4 to IPv6 * operations: and, or, xor, not for IPv4 and IPv6 * comparing addresses: <, <=, =, =>, > * no regex, all native example Code: [Select]var   ip: TIPv4;   mask: TIPv4;   network: TIPv4; begin   ip.AsString := '192.168.1.1';   mask.AsString := '255.255.255.0';   network := ip and mask;   ShowMessage(network.AsString); end; version: 13.02 licence: LGPL 3.0 source code: http://keit.co/p/wp-content/plugins/download- monitor/download.php?id=6 compiled app (w32): http://keit.co/p/netcalc/ (Polish language) http://keit.co/p/wp-content/plugins/download-monitor/download.php?id=2 (direct download) ---------------------------------------------------------------------- BigChimp · 2013-02-21 07:16 Had a brief look - that looks impressive! It might perhaps be a nice addition to the FPC code!?! Thanks, BigChimp ---------------------------------------------------------------------- Maciej Kaczkowski · 2014-10-10 08:24 Hi, Today I decided to publish the full source code of NetCalc. I hope you like it. Current version 14.10: http://keit.co/p/wp-content/plugins/download- monitor/download.php?id=14  - setup http://keit.co/p/wp-content/plugins/download- monitor/download.php?id=12  - portable http://keit.co/p/wp-content/plugins/download- monitor/download.php?id=13  - source Best regads Maciej