Extract some options in connection.
Merge pull request #39 from ComradeDOS/master

Extract some options in connection.