📦 RDATA field encoder/decoder in multicast DNS TXT records
Samandar Ravshanov
Posted on July 28, 2019
from functorflow import ff
data = {'zero': 0, 'one': 1}
r = ff('dns-txt').encode(data)
print(r)
# {'type': 'Buffer', 'data': [6, 122,..]}
r = ff('dns-txt').decode(r)
print(r) # {'zero': '0', 'one': '1'}
💖 💪 🙅 🚩
Samandar Ravshanov
Posted on July 28, 2019
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
replit 📦 Transform a camelized/dasherized/underscored/etc string into a readable string
August 1, 2019