Python@TW: 會眾| IRC| Planet| 郵件列表| 聯絡我們

import sys import socket import threading import json from collections import OrderedDict import binascii import datetime import time

def server_loop(local_host, local_port, remote_host, remote_port):

def receive_from(connection):

# modify any requests destined for the remote host def request_handler(socket_buffer):

# modify any responses destined for the local host def response_handler(buffer):

def proxy_handler(client_socket, remote_host, remote_port):

def main():

if name == "main":

Python/IDE或編輯器 (上次是 61-223-106-232 在 2018-02-11 21:34:51 編輯的)