NetAddr :: IP.

NETADDR :: IP´Â IPv4 ¹× IPv6 ÁÖ¼Ò ¹× ¼­ºê³ÝÀ» °ü¸® ÇÒ ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

NetAddr :: IP. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Luis E. Mu
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~luismunoz/Crypt-PasswdMD5-1.3/PasswdMD5.pm

NetAddr :: IP. ű×


NetAddr :: IP. ¼³¸í

NetAddr :: IP´Â IPv4 ¹× IPv6 ÁÖ¼Ò ¹× ¼­ºê³ÝÀ» °ü¸® ÇÒ ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. NetAddr :: IP´Â IPv4 ¹× IPv6 ÁÖ¼Ò ¹× ¼­ºê³ÝÀ» °ü¸® ÇÒ ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. ½Ä ³ëÇÁ·¹ÀÌ¼Ç NetAddr :: IP QW (Compact Coalesce Zero V4Mask V4net : aton : old_storable : old_nth); MY $ IP = NEW NETADDR :: IP '·çÇÁ¹é'; "ÁÖ¼Ò°¡", $ IP-> ADDR ","¸¶½ºÅ©°¡ÀÖ´Â ", $ IP-> ¸¶½ºÅ©,"n "; if ($ IP-> (NEW NETADDR :: IP "127.0.0.0", "255.0.0.0")) {PRINT "´Â ·çÇÁ¹é ÁÖ¼Ò"ÀÔ´Ï´Ù. } #ÀÌ Àμ⹰ 127.0.0.1/32 Àμâ "´Â $ IP ... n"À» ¸»ÇÒ ¼ö ÀÖ½À´Ï´Ù. * ´ÙÀ½ ³× °¡Áö ÇÔ¼ö´Â IPv6 Ç¥ÇöÀ» ¹ÝȯÇÕ´Ï´Ù. :: = Zeros (); ffff : ffff : ffff : ffff : ffff : ffff : ffff : ffff : = = ones (); ffff : ffff : ffff : ffff : ffff : ffff :: = v4mask (); :: ffff : ffff = v4net (); * inet_atonÀÌ ¹Ýȯ ÇÑ Çü½ÄÀÇ ÁÖ¼Ò¸¦ ¼ö¶ôÇÏ·Á¸é, ¸ðµâÀ» È£ÃâÇϽʽÿÀ. NetAddr :: IP QW (: aton); * NetAddrÀÌ Æ÷ÇÔ µÈ ·¹°Å½Ã µ¥ÀÌÅÍ ÆÄÀÏÀÇ »ç¿ëÀ» °¡´ÉÇÏ°ÔÇÕ´Ï´Ù :: ÀúÀå °¡´ÉÇÑ ¸ðµâÀ» »ç¿ëÇÏ¿© ÀúÀåµÈ IP °´Ã¼. NetAddr :: IP QW (: old_storable)¸¦ »ç¿ëÇϽʽÿÀ. * ¸¹Àº ÀÛÀº ¼­ºê³ÝÀ» ÄÞÆÑÆ®Çϱâ À§ÇØ ($ me-> compact ($ addr1, $ addr2, ...) @compacted_object_list = compact (@object_list) * $ masklen ¸¶½ºÅ© ±æÀÌÀÇ NetAddr :: IP ¼­ºê³Ý ¸ñ·Ï¿¡ ´ëÇÑ ÂüÁ¶¸¦ ¹ÝȯÇÕ´Ï´Ù. @list_of_subnets¿¡¼­ $ number ¶Ç´Â ±× ÀÌ»óÀÇ ÁÖ¼Ò°¡ @list_of_subnets¿¡ Æ÷ÇÔ µÈ °ÍÀ¸·Î ³ªÅ¸³³´Ï´Ù. $ ArrayRef = Coalesce ($ masklen, $ number, @list_of_subnets) ¿ä±¸ »çÇ× : ¡¤ÀÌ ¸±¸®½ºÀÇ »õ·Î¿î »õ·Î¿î ±â´É : ¡¤ ¼öÇп¡ ´ëÇÑ ÀÇÁ¸ :: bigint Á¦°Å perlÀÇ ÀÌÀü ¹öÀü°ú ÇÔ²² ÀÛµ¿ÇÕ´Ï´Ù. ¸ðµâÀº ´ÙÀ½°ú °°ÀÌ ¼¼ °³ÀÇ ³í¸®Àû Á¶°¢À¸·Î ºÐÇҵǾú½À´Ï´Ù. ¡¤ IP ÁÖ¼Ò ¹× ¸¶½ºÅ©¸¦ ³ªÅ¸³»´Â ºñÆ® ¹®ÀÚ¿­ ¹× ¼ýÀÚ¿¡ ´ëÇÑ util.pm ¼öÇÐ ¹× ³í¸® Á¶ÀÛ. ´Ù¾çÇÑ ¼ýÀÚ Çü½Ä °£ÀÇ º¯È¯. ¼Óµµ¸¦ À§ÇØ C_xs¿¡¼­ ±¸Çö ¹× ¼ø¼öÇÑ ¼ö¼Û¼ºÀÇ ¼ø¼öÇÑ Perl. ¡¤ IP ÁÖ¼Ò, Ç¥±â¹ý ¹× Çü½ÄÀÇ °£´ÜÇÑ Àüȯ ¹× ºñ±³. ¡¤ IP ÁÖ¼Ò Ç¥±â¹ý, ±×¹°, ¼­ºê³Ý ¹× ¹üÀ§ÀÇ IP.PM º¹ÀâÇÑ ÀÛ¾÷ ¹× Àüȯ. ¡¤ ÁÖ¼ÒÀÇ ³»ºÎ Ç¥Çö 128 ºñÆ® Bina·Î º¯°æµÇ¾ú½À´Ï´Ù inet_pton (ÀÌ ¸ðµâÀÇ IPV6_ATON)¿¡ ÀÇÇØ ¹Ýȯ µÈ RY ¹®ÀÚ¿­. IPv4 ¹× IPv6 Ç¥±â¹ý ¸ðµÎ ÀÚÀ¯·Ó°Ô È¥ÇյǾî ÀÏÄ¡ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¡¤ IPv4 Ç¥±â¹ýÀÌ »ç¿ëµÇ´Â °æ¿ì¿¡µµ IPv6 °ø°£À¸·Î ÀÛµ¿ÇÏ´Â Ãß°¡ ¹æ¹ýÀÌ Ãß°¡µÇ¾ú½À´Ï´Ù.


NetAddr :: IP. °ü·Ã ¼ÒÇÁÆ®¿þ¾î

¼ö¸®

SURUI ÇÁ·ÎÁ§Æ®´Â ¸ðµâ ½Ä À̺¥Æ® Á᫐ ÇÁ·Î±×·¡¹Ö ÇÁ·¹ÀÓ ¿öÅ©ÀÔ´Ï´Ù. ...

171

´Ù¿î·Îµå