[Tutor] sockets
Matt Richardson
marichar at csusb.edu
Thu May 4 22:46:07 CEST 2006
Kent Johnson wrote:
>
> This would be very easy to do with XML-RPC. On the server side, writ a
> function that takes three parameters - the IP address, MAC address, and
> traceroute dump - and saves them to a database. Use SimpleXMLRPCServer
> to expose the function. On the client side, gather the data and use
> xmlrpclib to call the remote function. Easy. Since this function will
> presumably be exposed on the public internet you need to worry about
> security; you should use some kind of authorization. A really simple
> solution would be to add username and password arguments to the function
> you expose.
<snip>
I thought that might be overkill after quickly glancing at it in
'Foundations of Python Network Programming', but I think you might have
just convinced me that it is actually the easier route. My original
thought was that it could be just a simple string, sent via UDP, that
would happen after networking was established but before log in. I had
done something simpler before using a bash script and sendmail, but I
really don't want my inbox plugged up with a bunch of 'phone home'
messages :)
Matt
More information about the Tutor
mailing list