Package killerbee :: Package openear :: Package gps :: Module client :: Class gpscommon
[hide private]
[frames] | no frames]

Class gpscommon

source code

Known Subclasses:

Isolate socket handling and buffering from the protcol interpretation.

Instance Methods [hide private]
 
__init__(self, host='127.0.0.1', port='2947', verbose=0) source code
 
connect(self, host, port)
Connect to a host on a given port.
source code
 
close(self) source code
 
__del__(self) source code
 
waiting(self)
Return True if data is ready for the client.
source code
 
read(self)
Wait for and read data being streamed from the daemon.
source code
 
send(self, commands)
Ship commands to the daemon.
source code
Method Details [hide private]

connect(self, host, port)

source code 

Connect to a host on a given port.

If the hostname ends with a colon (`:') followed by a number, and there is no port specified, that suffix will be stripped off and the number interpreted as the port number to use.