Update readme.md

The return values of connect() had wrong indexes.