Re: Publish/Subscribe Lib for Python?

From: Ville Vainio (ville_at_spammers.com)
Date: 02/28/04


Date: 28 Feb 2004 12:39:12 +0200


>>>>> "Adrian" == Adrian B <borg@swirve.com> writes:

    Adrian> Does anyone know of a framework or library that will
    Adrian> enable me to use publish/subscribe comms? I want to
    Adrian> create a server (using Python) running on a Unix box that
    Adrian> will accept client connections (from GUIs built with
    Adrian> wxPython) and publish realtime data updates to them. Any
    Adrian> advice on where to start?

This is easy w/o any special libraries, if it is indeed all you have
to do.

Some options:

- Clients open TCP socket to server as a "subscription", server dumps
  all the changes to all the connected TCP sockets.

- Clients register their host, port addrs with server, server sends
  updates to all the subscribed clients in UDP packets.

- UDP broadcasts might work too, haven't tried it.

Or, you could use something like CORBA (omniORB) for more complicated
scenarios.

Googling also revealed:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/81614

But beware: OSE, which that recipe relies on, seems to be licensed
under QPL.

-- 
Ville Vainio   http://tinyurl.com/2prnb


Relevant Pages

  • aggregating ppp virtual interfaces
    ... I'm configuring a PPP server and it is able to accept multiple client connections. ... Each connected client is handled by a PPP virtual interface, for example if 10 clients connected then there'll be ... Therefore the server only need to maintain ppp0 for multiple clients. ...
    (comp.protocols.ppp)
  • RE: Users Cant Access Documents on Server
    ... Thanks for using the SBS newsgroup. ... As well as we know, if a workstation would not access network shares, then ... Leave the Default Gateway of the internal NIC blank of the server box. ... Clients That Require SMB Signing ...
    (microsoft.public.windows.server.sbs)
  • Re: Users Cant Access Documents on Server
    ... my computer to the network on the server. ... Connection Wizard none of the computers were listed. ... The Mac clients can not communicate with the server box. ... > Error Messages When You Open or Copy Network Files on Windows XP SP1 ...
    (microsoft.public.windows.server.sbs)
  • Re: [SLE] SMTP authentication
    ... So eventhough my local SMTP server dials up to the internet with a certain username and password, that same username and password would not be used as authentication between my local SMTP server and the ISP's one, should it be used as a relay? ... either defer all outgoing mails until you connect to the internet, then flush out all the mails in the queue. ... Your local server would use an external program like fetchmail to poll the mailserver of your ISP, download the mails and feed them to Postfix. ... The test does NOT say "All clients must be in mynetworks, ...
    (SuSE)
  • RE: VPN Clients Not Registering in AD DNS
    ... via VPN, the DNS records of the VPN clients are unable to be registered. ... Windows 2003 server? ... please let me know whether the clients get the IP ...
    (microsoft.public.windows.server.sbs)