add manyuser branch
support udp over tcp support chacha20 & salsa20 (base on libsodium)
This commit is contained in:
parent
e001f1818c
commit
f2efed9608
18 changed files with 1327 additions and 57 deletions
22
server.py
Normal file
22
server.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import time
|
||||
import sys
|
||||
import thread
|
||||
import os
|
||||
os.chdir(os.path.split(os.path.realpath(__file__))[0])
|
||||
|
||||
import server_pool
|
||||
import db_transfer
|
||||
|
||||
#def test():
|
||||
# thread.start_new_thread(DbTransfer.thread_db, ())
|
||||
# Api.web_server()
|
||||
|
||||
if __name__ == '__main__':
|
||||
#server_pool.ServerPool.get_instance()
|
||||
#server_pool.ServerPool.get_instance().new_server(2333, '2333')
|
||||
thread.start_new_thread(db_transfer.DbTransfer.thread_db, ())
|
||||
while True:
|
||||
time.sleep(99999)
|
Loading…
Add table
Add a link
Reference in a new issue