[331] | 1 | # mruby-ipaddr
|
---|
| 2 |
|
---|
| 3 | [IPAddr](http://www.ruby-doc.org/stdlib-2.0/libdoc/ipaddr/rdoc/IPAddr.html) class for mruby
|
---|
| 4 |
|
---|
| 5 | ## Requirement
|
---|
| 6 | - [mruby-socket](https://github.com/iij/mruby-socket)
|
---|
| 7 | - inet\_ntop(3) and inet\_pton(3)
|
---|
| 8 |
|
---|
| 9 | ## Limitation
|
---|
| 10 |
|
---|
| 11 | - Some methods are missing:
|
---|
| 12 | #& #<< #>> #in6\_arpa #ip6\_int #ipv4\_compat? #ipv4\_mapped #ipv4\_mapped?
|
---|
| 13 | #mask! #native #reverse #set #succ #to\_i #to\_range #|
|
---|
| 14 | - Conversion from/to Integer is not supported.
|
---|
| 15 |
|
---|
| 16 | ## License
|
---|
| 17 |
|
---|
| 18 | Copyright (c) 2013 Internet Initiative Japan Inc.
|
---|
| 19 |
|
---|
| 20 | Permission is hereby granted, free of charge, to any person obtaining a
|
---|
| 21 | copy of this software and associated documentation files (the "Software"),
|
---|
| 22 | to deal in the Software without restriction, including without limitation
|
---|
| 23 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
---|
| 24 | and/or sell copies of the Software, and to permit persons to whom the
|
---|
| 25 | Software is furnished to do so, subject to the following conditions:
|
---|
| 26 |
|
---|
| 27 | The above copyright notice and this permission notice shall be included in
|
---|
| 28 | all copies or substantial portions of the Software.
|
---|
| 29 |
|
---|
| 30 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
---|
| 31 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
| 32 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
---|
| 33 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
---|
| 34 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
---|
| 35 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
---|
| 36 | DEALINGS IN THE SOFTWARE.
|
---|