set default dfirst/dlast if not found
Merge remote-tracking branch 'upstream/master'
NAR connect loop.
send 'setcookie' command to tncc as native client do
Merge pull request #7 from johnou/connect_loop

Connect loop.
code cleanup
Replace sleep with connect loop for ncsvc connection.