teamspeak2 plugin: Code cleanup.
authorFlorian Forster <octo@huhu.verplant.org>
Thu, 10 Apr 2008 11:58:35 +0000 (13:58 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Thu, 10 Apr 2008 11:58:35 +0000 (13:58 +0200)
commit416e3311ea598cfc5f6506ac4e0c99aaae8b63fa
treeb5bb21e63db977ee99137a6141dcdec8ac56c0e2
parente354a34c815a942b5c65cbd4844b6255a74b6323
teamspeak2 plugin: Code cleanup.

The changes include:
- Use the ``tss2_'' prefix for all functions.
- Manage the global connection in two central functions rather than distribute
  connection handling all over the place.
- Handle ``global'' and ``per server'' statistics in one function.
- Using `getaddrinfo' rather than `inet_addr' to allow for IPv6 connections.
- Some formatting.
src/teamspeak2.c