|
@@ -39,7 +39,7 @@ public:
|
|
if( k )
|
|
if( k )
|
|
abmelden();
|
|
abmelden();
|
|
delete[] ip;
|
|
delete[] ip;
|
|
- warteAufThread( 5000 );
|
|
|
|
|
|
+ warteAufThread( 10000 );
|
|
ende();
|
|
ende();
|
|
if( k )
|
|
if( k )
|
|
k->release();
|
|
k->release();
|
|
@@ -50,6 +50,14 @@ public:
|
|
if( k )
|
|
if( k )
|
|
return 1;
|
|
return 1;
|
|
k = new Network::Klient();
|
|
k = new Network::Klient();
|
|
|
|
+ int l = 0;
|
|
|
|
+ char *key;
|
|
|
|
+ Keys::getServerKey( &key, l, Keys::ERHALTUNG, Keys::SENDEN );
|
|
|
|
+ k->setSendeKey( key, l );
|
|
|
|
+ delete[] key;
|
|
|
|
+ Keys::getServerKey( &key, l, Keys::ERHALTUNG, Keys::EMPFANGEN );
|
|
|
|
+ k->setEmpfangKey( key, l );
|
|
|
|
+ delete[] key;
|
|
if( k->verbinde( port, ip ) )
|
|
if( k->verbinde( port, ip ) )
|
|
{
|
|
{
|
|
k->sende( "\0", 1 ); // Verschlüsselung Aktivieren
|
|
k->sende( "\0", 1 ); // Verschlüsselung Aktivieren
|
|
@@ -72,8 +80,8 @@ public:
|
|
k->trenne();
|
|
k->trenne();
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
- k->setSendeKey( (char*)key, keyLen );
|
|
|
|
- k->setEmpfangKey( (char*)key, keyLen );
|
|
|
|
|
|
+ k->setSendeKey( (char*)this->key, keyLen );
|
|
|
|
+ k->setEmpfangKey( (char*)this->key, keyLen );
|
|
start();
|
|
start();
|
|
}
|
|
}
|
|
else
|
|
else
|