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

2009-04-14 Thread Kent Johnson
On Mon, Apr 13, 2009 at 10:59 PM, ShivKumar Anand wrote: > 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. Where does the file name come from? Do you ask the user? Is it requested by the remo

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

2009-04-14 Thread Alan Gauld
"ShivKumar Anand" wrote My problem is I dont know how to send/receive a file using socket. How to get the filename specifically. Could you use ftp? There is an ftp module. You need to work out what you want to do over this connection and choose the appropriate protocol. Then you can use

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

2009-04-13 Thread ShivKumar Anand
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

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

2009-04-10 Thread Kent Johnson
On Fri, Apr 10, 2009 at 4:59 AM, ShivKumar Anand 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 se

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

2009-04-10 Thread ShivKumar Anand
i, 10 Apr 2009 09:23:36 +0100 > Subject: Re: [Tutor] How to write server which listens to specific port > > > "ShivKumar Anand" wrote > > > I have developed an application in Python 2.4.2, TurboGears 1.0, cherryPy > > 2.3.1. > > Well done. > > >

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

2009-04-10 Thread Alan Gauld
"ShivKumar Anand" wrote I have developed an application in Python 2.4.2, TurboGears 1.0, cherryPy 2.3.1. Well done. Now, I have to develop a server, which listens to a specific port (104) and save the file to a specific location (/tmp/myDir) on RHEL 4/5. Does this server have anything to