Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] [] Recent changes

From: rebol::rebol::org at: 23-Feb-2005 9:00

[REBOL] [] Recent changes This is an automatic email from, the REBOL Script Library to notify you of recent changes to the Library. =======changes======= dig.r --change: new script --title: DNS protocol --owners: vdemong --author: VDemong --purpose: REBOL DIG : Implementation of DNS protocol (RFC 1035) URL is dig://name-server/TYPE/name ans: read dig:// ans: read dig:// ans: read dig::/ you can see a list of available TYPEs in cmd-list in beginning of code use ans/to-str to obtain readable answer:
>> do %dig.r
Script: "DNS protocol" (19-Feb-2005) dig protocol loaded
>> ans: read dig://
connecting to:
>> print ans/to-str
;; REQUEST: SOA(6) for ;; id: 7724 AA: 1 RD: 1 RA: 0 ANSWER(s): 1 AUTHORITY(s): 2 ADDITIONAL(s): 2 ;; ANSWER(s): 1800 SOA 2005021701 1800 900 1209600 1800 ;; AUTHORITY(s) 604800 NS 604800 NS ;; ADDITIONAL(s) 1800 A 1800 A
If you want to extract yourself information look at the structure of objects question,answer,resource and (xxx)-data in code --url: emit-rss.r --change: updated script -- Changed 'escape-rule; Added required email to 'item/author; Changed 'item/content to 'item/description --title: Emit RSS --owners: chrisrg --author: Christopher Ross-Gill --purpose: Create an RSS Feed from a REBOL Block. --url: klipper.r --change: new script --change: updated script --title: clipboard handler --owners: piotrgapinsk --author: Piotr Gapinski --purpose: Share clipboard between Linux/KDE klipper and Rebol --url: snmp.r --change: new script --title: SNMP v1 protocol --owners: vdemong --author: VDemong --purpose: Implementation of SNMP v1 scheme (RFC 1155,1156,1157) , no TRAP. URL is snmp://[community@]<host adr>/CMD/<id values> default community is public Where CMD is get getnext or set id values is a string like that: "" Return an object: make object! [ version: 0 community: "public" request-id: 1122 error-status: 0 error-message: "NoError" error-index: 0 values: [[# {Hardware: x86 Family 5 Model 8 Stepping 12 AT/AT COMP ATIBLE - Software: Windows 2000 Version 5.0 (Build 2195 Uniprocessor Free)}] [# "BOGOMILE"]] ] samples: p: open snmp://[public--127--0--0--1]/GET/ insert p "" rep1: copy p close p rep2: read join snmp://[public--127--0--0--1]/GET/ ""; rep5: read join snmp://[public--127--0--0--1]/GETnext/ adr: while [ adr <> ] [ error? try [ rep: read to-url rejoin [ "snmp://" adr "/GET/" ] print [ "At " adr " find: " second first rep/values " : " second second rep/values ] ] adr: adr + ] --url: =======additional information======= new and updated scripts: =======end======= --The Library People --23-Feb-2005