Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from multiprocessing import Pool
- import socket
- sock=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
- sock.connect(('IP' , PORT))
- worker=Pool(processes=1)
- worker.apply_async(Processor,())
- server =socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
- server.bind('sock.s')
- server.listen(1)
- connection,addr=server.accept()
- connection.sendall(sock)
Add Comment
Please, Sign In to add comment