connecting two process through a socket
user at domain.invalid
user at domain.invalid
Fri Feb 28 02:30:38 EST 2003
More information about the Python-list mailing list
Fri Feb 28 02:30:38 EST 2003
- Previous message (by thread): connecting two process through a socket
- Next message (by thread): Newbie: question about Tkinter
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
What I am trying to do is combine two daemons. The first
daemon logs is status in various ways: file,syslog and status
files which take the form /path/to/status/dir/currentpid/file.
The other daemon is a threading tcpip server which listen on
port 3030 (configurable). The problem I have here is that I
need to get the pid of the first daemon so that second daemon
can feed data to clients.
So, what I am considering is having the first daemon send data to
the second through a socket. Is there a way to have the two
daemons connected this way, and having the second daemon
shutdown when the socket is closed? And how can I make sure
that clients do not connect to the first daemon, only the second?
In other words, can I have a socket server that is connected to
another server as a client?
---------- ---------
| | | | ------->client1
| daemon1 |<------->| daemon2 | ------->client2
| | | | ------->clientn
---------- ---------
- Previous message (by thread): connecting two process through a socket
- Next message (by thread): Newbie: question about Tkinter
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list