[Tutor] Talking to UDPServer

Carroll, Barry Barry.Carroll at psc.com
Tue Nov 1 19:34:47 CET 2005


Johan, et al:

 

Yes, that is exactly what I want.  I need to write a program that
communicates with an existing server, using the UDP protocol.  This is my
first time writing such a program, and I need help getting started.  

 

Thanks again.  

 

Barry

 

  _____  

From: Johan Geldenhuys [mailto:johan at accesstel.co.za] 
Sent: Monday, October 31, 2005 5:35 PM
To: Carroll, Barry
Cc: 'tutor at python.org'
Subject: Re: [Tutor] Talking to UDPServer

 

Maybe you could tel us if you already have the server listening on the
socket that you expec connections on? If, yes, do you want an example of how
a client connects to that socket?

Johan

Carroll, Barry wrote: 

Greetings:

 

I am writing a browser-based interface to a server program which extends
SocketServer.UDPServer.  The program listens on a well-known socket,
receiving commands, verifying them and using their content to drive our test
hardware, returning status to the client.  The current client interface is a
command line interface that allows the user to type in a command and sends
it to the server, receives the status response and displays it for the user.
My job is to duplicate the client functionality in a set of web pages.  

 

My problem is that, while I can find documentation on UDPServer, I cannot
find anything on how a remote client talks to the server.  How is this done
in Python?  Can someone point me to a how-to, tutorial or the like?  

 

Thanks in advance.

 

Barry

 

 

 

 





  _____  



 
_______________________________________________
Tutor maillist  -  Tutor at python.org <mailto:Tutor at python.org> 
http://mail.python.org/mailman/listinfo/tutor
<http://mail.python.org/mailman/listinfo/tutor> 
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20051101/7b8fd222/attachment.htm


More information about the Tutor mailing list