Implement SocketTagger.tag.

Closes #1056. Fixes #970.