mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 19:27:49 +02:00
qtui first draft completed
This commit is contained in:
parent
61e1e7fe8f
commit
298181999d
13 changed files with 588 additions and 157 deletions
|
@ -1,2 +1,41 @@
|
|||
#include "TunnelConfig.h"
|
||||
|
||||
void TunnelConfig::saveHeaderToStringStream(std::stringstream& out) {
|
||||
out << "[" << name << "]\n"
|
||||
<< "type=" << type.toStdString() << "\n";
|
||||
}
|
||||
|
||||
void TunnelConfig::saveI2CPParametersToStringStream(std::stringstream& out) {
|
||||
out << "inbound.length=" << i2cpParameters.getInbound_length().toStdString() << "\n"
|
||||
<< "outbound.length=" << i2cpParameters.getOutbound_length().toStdString() << "\n"
|
||||
<< "inbound.quantity=" << i2cpParameters.getInbound_quantity().toStdString() << "\n"
|
||||
<< "outbound.quantity=" << i2cpParameters.getOutbound_quantity().toStdString() << "\n"
|
||||
<< "crypto.tagsToSend=" << i2cpParameters.getCrypto_tagsToSend().toStdString() << "\n"
|
||||
<< "explicitPeers=" << i2cpParameters.getExplicitPeers().toStdString() << "\n\n";
|
||||
}
|
||||
|
||||
void ClientTunnelConfig::saveToStringStream(std::stringstream& out) {
|
||||
out << "address=" << address << "\n"
|
||||
<< "port=" << port << "\n"
|
||||
<< "destination=" << dest << "\n"
|
||||
<< "keys=" << keys << "\n"
|
||||
<< "destinationport=" << destinationPort << "\n"
|
||||
<< "signaturetype=" << sigType << "\n";
|
||||
}
|
||||
|
||||
|
||||
void ServerTunnelConfig::saveToStringStream(std::stringstream& out) {
|
||||
out << "host=" << host << "\n"
|
||||
<< "port=" << port << "\n"
|
||||
<< "keys=" << keys << "\n"
|
||||
<< "signaturetype=" << sigType << "\n"
|
||||
<< "inport=" << inPort << "\n"
|
||||
<< "accesslist=" << accessList << "\n"
|
||||
<< "gzip=" << (gzip?"true":"false") << "\n"
|
||||
<< "enableuniquelocal=" << (isUniqueLocal?"true":"false") << "\n"
|
||||
<< "address=" << address << "\n"
|
||||
<< "hostoverride=" << hostOverride << "\n"
|
||||
<< "webircpassword=" << webircpass << "\n"
|
||||
<< "maxconns=" << maxConns << "\n";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue