**以前のリビジョンの文書です**

RFC5952

文字列とバイナリ表現の相互変換用のスクリプト。

こんな感じで使う。

import rfc5952binary = '\x20\x01\x0d\xb8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01'rfc5952.inet6_ntoa(binary)

'2001:db8::1'

string = "2001:db8:1f1f:90::82"rfc5952.inet6_aton(string)

' \x01\r\xb8\x1f\x1f\x00\x90\x00\x00\x00\x00\x00\x00\x00\x82'

Bitbucketで公開してます。

programming/python/rfc5952.1354713743.txt.gz · 最終更新: 2012/12/05 22:22 by yuki
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0