Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/socks5.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2015-2016 The Bitcoin Core developers | # Copyright (c) 2015-2016 The Bitcoin Core developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
"""Dummy Socks5 server for testing.""" | """Dummy Socks5 server for testing.""" | ||||
import logging | |||||
import queue | |||||
import socket | import socket | ||||
import threading | import threading | ||||
import queue | |||||
import logging | |||||
logger = logging.getLogger("TestFramework.socks5") | logger = logging.getLogger("TestFramework.socks5") | ||||
# Protocol constants | # Protocol constants | ||||
class Command: | class Command: | ||||
CONNECT = 0x01 | CONNECT = 0x01 | ||||
▲ Show 20 Lines • Show All 159 Lines • Show Last 20 Lines |