[zeromq-dev] ZeroMQ with Python and a basic task

Kenneth Adam Miller kennethadammiller at gmail.com
Sat Mar 7 17:48:31 CET 2015

lol, well you use linux don't you? Any of the linux repositories would
likely be good to search on, sourceforge, google code, github... those are
all good points. I don't know that they'd be written in python, more than
likely it will be C/++ or something. Pidgin is one for certain, but that
code will be rather expansive. Consuming and learning from existing code is
hard if the developers don't leave behind some documentation.

The point I was making about TCP hole punching is that you don't want your
software consumers to have to deal with the firewall problem. You just want
the connection to go through, so each client has to TCP hole punch so that
the other's request will flow through correctly.

On Sat, Mar 7, 2015 at 2:22 AM, Michael Cuggy <mcuggy at gmail.com> wrote:

> Yes, I was running a corresponding Python script to listen on port 5555.
> My nmap commands show that port 5555 was "closed" and not "filtered."
> That is consistent with the firewall rules allowing connectivity over
> port 5555.  (A software firewall or hardware firewall that blocked
> port 5555 would show "filtered.")
> Can you show me a specific client chat program?  I tried to find one
> off the Internet.  I'd prefer it to be in Python.  But it doesn't have
> to be.  I just want to use ZeroMQ in a practical way like creating a
> chat room.  I want access to the source code.  I'd like to see one
> from this plethora.  Thank you very much for your response.  I look
> forward to getting a second response.
> On 3/1/15, Kenneth Adam Miller <kennethadammiller at gmail.com> wrote:
> > On your example, are you running the requisite request receiver, eg the
> > python script that binds to port 5555 in order that the server can have
> > something to connect to? Just checking.
> >
> > Well it depends on what all you want it to do in what scenario. If these
> > are two typical user machines, you might need tcp hole punching to get
> past
> > firewalls to start with. There's libraries for that, and I'll probably go
> > through that soon for my application.
> >
> > Also, you don't have to start from scratch, you could easily work from
> one
> > of the plethora of existing messaging clients and extend them, or at
> least
> > read their source to see how they work.
> >
> > On Mon, Mar 2, 2015 at 12:29 AM, Michael Cuggy <mcuggy at gmail.com> wrote:
> >
> >> Hello,
> >>
> >> I am using RHEL v. 7.x on AWS.  I installed ZeroMQ 4.0.5.  I want to
> >> create a basic program using Python and ZeroMQ that serves as a chat
> >> service for human users using Linux on a LAN.
> >>
> >> I have made a significant effort.  I installed the prerequisites for
> >> ZeroMQ and ZeroMQ itself. I installed the Python bindings.
> >>
> >> The problem is that I cannot even get a Hello World program to work on
> >> one server.  But I used the Hello World program that was on the
> >> zeromq.org page. (http://zguide.zeromq.org/py:hwclient)
> >>
> >> Here is what I get (after running python hello.py):
> >>
> >> "Connecting to hello world server
> >> Sending request 0"
> >>
> >> It pauses indefinitely after this.  I have to escape out with Ctrl-c.
> >>
> >> Can I get step-by-step directions on how to create a messaging program
> >> using Python and Zeromq?  I just want it to work between two Linux
> >> machines to start with.  It is just problem after problem.  If no one
> >> knows of such documentation, can someone please tell me why I cannot
> >> see "Hello World" via the Python program that ZeroMQ.org provides?  To
> >> me it just
> >> pauses after "Sending request 0."
> >>
> >> thanks,
> >>
> >> Mike
> >> _______________________________________________
> >> zeromq-dev mailing list
> >> zeromq-dev at lists.zeromq.org
> >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >>
> >
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150307/72921324/attachment.htm>

More information about the zeromq-dev mailing list