[Tutor] How to write server which listens to specific port

Kent Johnson kent37 at tds.net
Fri Apr 10 12:56:34 CEST 2009


On Fri, Apr 10, 2009 at 4:59 AM, ShivKumar Anand <shiv_mbm at hotmail.com> wrote:

> I have to implement HL7 in my existing application.
> so, I have to send/receive messages which are in a text file (not
> implementing v3.0, in which the messages are in xml format)

Googling "python hl7" finds a couple of hints for the server and a
message parser:
http://mail.python.org/pipermail/python-list/2007-March/600733.html
http://pypi.python.org/pypi/hl7/0.1.0

> How can we configure in TurboGears to send and receive files?
>
> The protocol I want to use is TCP/IP v4

I don't think you can use TurboGears / CherryPy to create a server
that is not HTTP-based. For that look at socketserver or
asyncore/asynchat in the std lib or Twisted.

Kent


More information about the Tutor mailing list