[Tutor] Talking to UDPServer

Kent Johnson kent37 at tds.net
Tue Nov 1 02:55:34 CET 2005


Carroll, Barry wrote:
> 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? 

Are you trying to write a browser-based client, or a Python client? As far as I know, it is not possible to write a browser client in Python, or a browser UDP client. You can write a UDP client in Python, I think you have to use the socket module directly.

Kent

-- 
http://www.kentsjohnson.com



More information about the Tutor mailing list