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.
Thanks
Shiv
> Date: Fri, 10 Apr 2009 06:56:34 -0400
> Subject: Re: [Tutor] How to write server which listens to specific port
> From: ken...@tds.net
> To: shiv_...@hotmail.com
> CC: tutor@python.org
>
> On Fri, Apr 10, 2009 at 4:59 AM, ShivKumar Anand <shiv_...@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
_________________________________________________________________
How fun is this? IMing with Windows Live Messenger just got better.
http://www.microsoft.com/india/windows/windowslive/messenger.aspx
_______________________________________________
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor