Guest User

Untitled

a guest
Jan 17th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. from multiprocessing import Pool
  2. import socket
  3.  
  4. sock=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
  5. sock.connect(('IP' , PORT))
  6.  
  7. worker=Pool(processes=1)
  8. worker.apply_async(Processor,())
  9. server =socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
  10. server.bind('sock.s')
  11. server.listen(1)
  12. connection,addr=server.accept()
  13. connection.sendall(sock)
Add Comment
Please, Sign In to add comment