Difficult-Rocket/bin/server.py

24 lines
513 B
Python
Raw Normal View History

2021-02-14 20:22:29 +08:00
'''
2021-01-21 15:05:29 +08:00
writen by shenjackyuanjie
mail: 3695888@qq.com
2021-02-14 20:22:29 +08:00
'''
2021-01-21 15:05:29 +08:00
import multiprocessing as mp
2021-01-23 19:55:35 +08:00
class server(mp.Process):
2021-01-25 12:22:55 +08:00
def __init__(self, dev_list, dev_dic, logger, net_mode='local'):
2021-01-21 15:05:29 +08:00
# father class __init__()
mp.Process.__init__(self)
2021-01-25 12:22:55 +08:00
# logging
self.logger = logger
2021-01-21 15:05:29 +08:00
# value
2021-01-23 19:55:35 +08:00
self.process_id = 'Server'
self.process_name = 'server process'
2021-01-25 07:32:39 +08:00
# share memory
2021-01-21 15:05:29 +08:00
self.dev_list = dev_list
self.dev_dic = dev_dic
def run(self):
pass