Added network/host endianess conversion (was ignored so far).
Removed old sleep command in client (deprecated testing purpose). Fixed connection state on first conntact.