목록Team Friends Project/proxy server (5)
leejhstory
import os, sys, thread, socket # ********* CONSTANT VARIABLES ********* BACKLOG = 50 # how many pending connections queue will hold MAX_DATA_RECV = 999999 # max number of bytes we receive at once DEBUG = True # set to True to see the debug msgs BLOCKED = [] # just an example. Remove with [""] for no blocking at all. # ************************************** # ********* MAIN PROGRAM **************..
Implementing a web proxy server with python 1. importing modules #! /usr/bin/env python import socket, sys from thread import * import socket, sys - 모듈가져오기from thread import * - 스레드 모듈에서 모든기능 import 2. 프로그램 설정 try: listening_port = int(raw_input("[*] Enter Listening Port Number: ")) except KeyboardInterrupt: print "\n[*] User Requested An Interrupt" print " [*] Application Exiting ..." sys.exit(..
보호되어 있는 글입니다.
보호되어 있는 글입니다.