Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can i access a unix domain socket on a remote machine?

I have a Python process on a single box which creates a flock of mini servers, small Python processes which provide some specialized computation. Each of those creates and listens on a Unix domain socket using multiprocessing.connection.Listener ("file_path"), each with a different path, of course.

Is it possible to access a socket on a remote machine, with something like a path of unix://remote/file_path, or file://remote/file_path?

Using port numbers is not practical, since the set of mini servers is dynamic.

like image 298
mARK bLOORE Avatar asked Nov 24 '16 01:11

mARK bLOORE


1 Answers

Unix domain sockets are meant for inter-process communication within the same host machine. Data sent through these sockets are handled entirely inside the kernel. For communication between processes in different machines, you should use network sockets.

like image 130
nradk Avatar answered Oct 16 '22 05:10

nradk