Bram Moolenaar | bfe13cc | 2020-04-12 17:53:12 +0200 | [diff] [blame] | 1 | #!/usr/bin/env python |
2 | # | ||||
3 | # Server that will accept connections from a Vim channel. | ||||
4 | # Used by test_channel.vim. | ||||
5 | # | ||||
6 | # This requires Python 2.6 or later. | ||||
7 | |||||
8 | from test_channel import main, ThreadedTCPServer | ||||
9 | import socket | ||||
10 | |||||
11 | class ThreadedTCP6Server(ThreadedTCPServer): | ||||
12 | address_family = socket.AF_INET6 | ||||
13 | |||||
14 | if __name__ == "__main__": | ||||
15 | main("::", 0, ThreadedTCP6Server) |