[Tutor] How to write server which listens to specific port
ShivKumar Anand
shiv_mbm at hotmail.com
Fri Apr 10 10:59:51 CEST 2009
Thanks Alan for reply.
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)
I found tutorial on socket programming and trying from that.
By importing socket.
I am not sure about how to send the files. (not yet)
How can we configure in TurboGears to send and receive files?
The protocol I want to use is TCP/IP v4
Operating system is RHEL 5
Regards,
Shiv
> To: tutor at python.org
> From: alan.gauld at btinternet.com
> Date: Fri, 10 Apr 2009 09:23:36 +0100
> Subject: Re: [Tutor] How to write server which listens to specific port
>
>
> "ShivKumar Anand" <shiv_mbm at hotmail.com> 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 do with your TurboGears application?
> Or is it something brand new? Turbo gears can be configured to use
> any port using the config files.
>
> If its new, what protocol are you using? Is it http or tcp/ip or raw IP
> or something else?
>
> > Guide me how to do that. what all packages I have to use.
>
> At the most basic level you can use the socket module and do it all
> from scratch, but if its a higher lervel protocol there may be higher level
> modules already written that will help.
>
> We need to know a lot more about the problem and the
> environment - what kind of computer/OS etc.
>
>
> --
> Alan Gauld
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
>
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
_________________________________________________________________
Twice the fun—Share photos while you chat with Windows Live Messenger.
http://www.microsoft.com/india/windows/windowslive/messenger.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090410/56103ef8/attachment.htm>
More information about the Tutor
mailing list