choose address family in OSCClient._ensureConnect python3
authorArtem Popov <artfwo@gmail.com>
Tue, 28 Jun 2011 04:19:24 +0000 (11:19 +0700)
committerArtem Baguinski <artm@v2.nl>
Tue, 28 Jun 2011 17:44:34 +0000 (19:44 +0200)
commit6aaf78b0c1e89942a9c5b1952266791b7ae16012
treebdec5f2425a0118b7211c8ac49b46944129b57c9
parent35434d1e1019ad9b262cf3a6f0def8130ef2512a
choose address family in OSCClient._ensureConnect

The address family is chosen based on the address tuple length - ipv6
addresses are normally represented as (host, port, flowinfo, scopeid)
tuple, so len(address) looks like a possible way to check if we're
dealing with ipv6.
OSC.py