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

ShivKumar Anand 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.

 

Thanks

 

Shiv
 
> 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:
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090414/ba9f5385/attachment.htm>


More information about the Tutor mailing list