Handle routers that have no name.
In the case where a router has no name, the router returns a 0-byte
value for the CMD_NAME result. The parser does not store this value,
so attempts to access it fail.
While a more sophisticated work-around might make sense, we only
use this in a single place, so simply treating a missing CMD_NAME as
an empty name fixes this case.
Remove unnecessary delay waiting for reply from router.
The recv() command will block until a packet comes in.
Actually there should probably be a timeout on this, but certainly
no delay is necessary before invoking recv().
Fix spelling s/bandwith/bandwidth/
The German sound for 'd' is pretty much the same as 't' I guess. :)
Lots of spelling fixes.
I did a scan through the source to fix spelling. Not important but
it was driving me crazy! :-P
Check for case where our interface has no addresses and fail gracefully.
I think it may not be an unusual case, such as when someone gets a
new switch and wants to configure it without hooking it up to a network
first.
Merge pull request #18 from shane-kerr/master

spelling fixes, fix if route has no name
Refactor packet send/receive.
These are changes to make the class more generally useful:
* Change the recv() function to simply receive a single message.
* Add recv_all() which duplicates the previous functionality, where
  we loop and collect all pending packets.
* Add the send_query() function to send a query rather than send
  a query and receive answers.
* Change query() to use our new send_query() and recv_all()
  functions.
* Update the rest of the code to use these new functions properly.
Minor change so we return a tuple consistently from recv() function.
Handle case where timeout=0.
Works with Python 3
It is a bit kludgy in parts, explicitly checking for string type
(as opposed to array of bytes), but it works.
Merge pull request #19 from shane-kerr/master

Python 3 support, beginning of refactoring API
Update README.md
Merge branch 'master' of https://github.com/tabacha/ProSafeLinux

Conflicts:
	psl-cli.py
	psl_class.py
	psl_typ.py