Menu

Tree [12f027] main /
 History

HTTPS access


File Date Author Commit
 lib 2022-01-04 Bandura Yeo Borissowitsch Bandura Yeo Borissowitsch [0a22f7] Initial commit
 .gitignore 2022-01-04 Marek Küthe Marek Küthe [15247b] Initial commit
 LICENSE 2022-01-04 Bandura Yeo Borissowitsch Bandura Yeo Borissowitsch [0a22f7] Initial commit
 README.md 2022-01-04 Bandura Yeo Borissowitsch Bandura Yeo Borissowitsch [12f027] forget to change title in readme
 meshname.gemspec 2022-01-04 Bandura Yeo Borissowitsch Bandura Yeo Borissowitsch [0a22f7] Initial commit

Read Me

Meshname

Gem, which provides conversion and DNS resolution functions for the Meshname protocol (see https://github.com/zhoreeq/meshname)

Depends on Base32

Example

Meshname.getname IPAddr.new("215:15c:84e0:8dd5:7590:bfcd:61cf:cff7") => "aikqcxee4cg5k5mqx7gwdt6p64"
"#{Meshname.getname IPAddr.new("215:15c:84e0:8dd5:7590:bfcd:61cf:cff7")}.meship" => "aikqcxee4cg5k5mqx7gwdt6p64.meship"


Meshname.getip "aikqcxee4cg5k5mqx7gwdt6p64" => #<IPAddr: IPv6:0215:015c:84e0:8dd5:7590:bfcd:61cf:cff7/ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff>
Meshname.getip("aikqcxee4cg5k5mqx7gwdt6p64").to_s => "215:15c:84e0:8dd5:7590:bfcd:61cf:cff7"

Meshname.resolv("aikqcxee4cg5k5mqx7gwdt6p64.meship") => [#<IPAddr: IPv6:0215:015c:84e0:8dd5:7590:bfcd:61cf:cff7/ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff>]
Meshname.resolv("aikqcxee4cg5k5mqx7gwdt6p64.meship")[0].to_s => "215:15c:84e0:8dd5:7590:bfcd:61cf:cff7"

Meshname.resolv("aikqcxee4cg5k5mqx7gwdt6p64.meshname") => [#<IPAddr: IPv6:0215:015c:84e0:8dd5:7590:bfcd:61cf:cff7/ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff>]
Meshname.resolv("aikqcxee4cg5k5mqx7gwdt6p64.meshname")[0].to_s => "215:15c:84e0:8dd5:7590:bfcd:61cf:cff7"

Meshname

Read more on https://github.com/zhoreeq/meshname and https://github.com/zhoreeq/meshname/blob/master/protocol.md

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.