[Tutor] How to write server which listens to specific port
shiv_mbm at hotmail.com
Tue Apr 14 04:59:58 CEST 2009
Thanks Kent for this valuable information.
My problem is I dont know how to send/receive a file using socket.
How to get the filename specifically.
> Date: Fri, 10 Apr 2009 06:56:34 -0400
> Subject: Re: [Tutor] How to write server which listens to specific port
> From: kent37 at tds.net
> To: shiv_mbm at hotmail.com
> CC: tutor at python.org
> 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:
> > 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.
How fun is this? IMing with Windows Live Messenger just got better.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor