Trees | Indices | Help |
|
---|
|
1 ### BITPIM 2 ### 3 ### Copyright (C) 2004 Roger Binns <rogerb@rogerbinns.com> 4 ### 5 ### This program is free software; you can redistribute it and/or modify 6 ### it under the terms of the BitPim license as detailed in the LICENSE file. 7 ### 8 ### $Id: client.py 2741 2006-01-09 03:32:08Z sawecw $ 9 10 """Code if you want to be a client of BitFling""" 11 12 # Standard imports 13 import sys 14 from xmlrpclib import Binary 15 16 # My imports 17 import xmlrpcstuff 1820 "A BitFling client" 21 22 # Although we could just inherit straight from ServerProxy, this 23 # code is here to help ensure calling convention, and in the 24 # future deal with backwards compatibility issues. We also deal 25 # with XMLRPC specific issues such as marshalling binary data 266928 "The URL should include username and password if any" 29 self.server=xmlrpcstuff.ServerProxy(username, password, host, port, certverifier)3032 return self.server.getversion()3335 return self.server.scan()3638 return self.server.deviceopen(port, baud, timeout, hardwareflow, softwareflow)39 42 45 48 51 54 57 60 63 6668 return self.server.devicewritethenreaduntil(handle, Binary(data), Binary(char), numfailures).data
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Jan 24 16:25:37 2010 | http://epydoc.sourceforge.net |