I am looking for a cheap and efficient way (rather than hacking through the Bitcoin source code) of listing my peers.
Something I have come up with:
#!/bin/bash
netstat -p tcp -nba | grep '.8333.*ESTABLISHED' | perl -npe 's/.*\s+((\d+.){3}\d+)\.\d+\s+ESTABLISHED.*/$1/'
The script above generates a list of IPs.