Opened 7 years ago

Closed 6 years ago

#2065 closed defect (fixed)

Update TorCtl examples

Reported by: mikeperry Owned by:
Priority: Medium Milestone:
Component: Torctl Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

The TorCtl examples are all old and broken. Plus atagar has made the whole connection and authentication process much easier. We should rewrite all the examples to use his new functions.

Child Tickets

Change History (3)

comment:1 Changed 7 years ago by atagar

The most requested thing I've seen is 'show me event type X', in which case this example would do the trick:
http://tor.pastebin.com/z8xJdhwq

katmagic pointed out that the init isn't necessary, but I think we should keep it since having an init without calling the parent produces confusing errors. Do you want a patch or is there another example you think would be more helpful?

comment:2 Changed 6 years ago by atagar

  • Status changed from new to needs_review

comment:3 Changed 6 years ago by mikeperry

  • Resolution set to fixed
  • Status changed from needs_review to closed

Looks good. Merged.

Note: See TracTickets for help on using tickets.