|
@@ -39,7 +39,7 @@ public:
|
|
|
if( k )
|
|
|
abmelden();
|
|
|
delete[] ip;
|
|
|
- warteAufThread( 5000 );
|
|
|
+ warteAufThread( 10000 );
|
|
|
ende();
|
|
|
if( k )
|
|
|
k->release();
|
|
@@ -50,6 +50,14 @@ public:
|
|
|
if( k )
|
|
|
return 1;
|
|
|
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 ) )
|
|
|
{
|
|
|
k->sende( "\0", 1 ); // Verschlüsselung Aktivieren
|
|
@@ -72,8 +80,8 @@ public:
|
|
|
k->trenne();
|
|
|
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();
|
|
|
}
|
|
|
else
|