ssize_t len;
char result = 0xff;
char *password = 0;
int attempts = 3;
int delay = 1;
cs = smbpw_unix_connect(SOCKET_NAME);
if(cs < 0)
{
while(attempts > 0)
attempts--;
sleep(delay);
delay = delay * 2;
if(cs >= 0)
break;
}
// could not connect to server
return password;
// retrieve