English corrections.

This commit is contained in:
anonimal 2015-10-05 11:44:48 +00:00
parent 7c924e13d9
commit dd88e13b95
23 changed files with 48 additions and 48 deletions

View file

@ -154,7 +154,7 @@ namespace client
m_SamBridge->Stop ();
delete m_SamBridge;
m_SamBridge = nullptr;
LogPrint("SAM brdige stopped");
LogPrint("SAM bridge stopped");
}
if (m_BOBCommandChannel)
{
@ -316,7 +316,7 @@ namespace client
auto clientTunnel = new I2PClientTunnel(
dest, address, port, localDestination, destinationPort
);
// TODO: allow muliple tunnels on the same port (but on a different address)
// TODO: allow multiple tunnels on the same port (but on a different address)
if(m_ClientTunnels.insert(std::make_pair(port, std::unique_ptr<I2PClientTunnel>(clientTunnel))).second)
clientTunnel->Start ();
else

View file

@ -63,7 +63,7 @@ namespace i2p
if(i2p::util::config::HasArg("-install")) {
try {
i2p::util::filesystem::InstallFiles();
LogPrint("Succesfully installed all files.");
LogPrint("Successfully installed all files.");
} catch(const std::runtime_error& e) {
LogPrint(eLogError, "Failed to install: ", e.what());
return false;

View file

@ -26,7 +26,7 @@ namespace proxy
GET_METHOD,
GET_HOSTNAME,
GET_HTTPV,
GET_HTTPVNL, //TODO: fallback to finding HOst: header if needed
GET_HTTPVNL, //TODO: fallback to finding Host: header if needed
DONE
};
@ -87,7 +87,7 @@ namespace proxy
}
/* All hope is lost beyond this point */
//TODO: handle this apropriately
//TODO: handle this appropriately
void HTTPProxyHandler::HTTPRequestFailed(/*HTTPProxyHandler::errTypes error*/)
{
static std::string response = "HTTP/1.0 500 Internal Server Error\r\nContent-type: text/html\r\nContent-length: 0\r\n";
@ -185,7 +185,7 @@ namespace proxy
assert(len); // This should always be called with a least a byte left to parse
while (len > 0)
{
//TODO: fallback to finding HOst: header if needed
//TODO: fallback to finding Host: header if needed
switch (m_state)
{
case GET_METHOD:

View file

@ -296,7 +296,7 @@ namespace client
// host parameter set use that instead of loopback
host = hostitr->second;
}
// set forward addresss
// set forward address
m_udpForward = boost::asio::ip::udp::endpoint(boost::asio::ip::address::from_string(host), port);
// we are now a udp forward socket
m_SocketType = eSAMSocketTypeUDPForward;

View file

@ -163,7 +163,7 @@ namespace client
void CloseSession (const std::string& id);
SAMSession * FindSession (const std::string& id) const;
// forward a datagran to a udp endpoint
// forward a datagram to a udp endpoint
void ForwardUDP(const boost::asio::ip::udp::endpoint & to_ep, const i2p::data::IdentityEx& from, const uint8_t * buff, size_t bufflen);
private:

View file

@ -75,8 +75,8 @@ namespace proxy
SOCKS5_HOST_UNREACH = 4, // Host unreachable
SOCKS5_CONN_REFUSED = 5, // Connection refused by the peer
SOCKS5_TTL_EXPIRED = 6, // TTL Expired
SOCKS5_CMD_UNSUP = 7, // Command unsuported
SOCKS5_ADDR_UNSUP = 8, // Address type unsuported
SOCKS5_CMD_UNSUP = 7, // Command unsupported
SOCKS5_ADDR_UNSUP = 8, // Address type unsupported
SOCKS4_OK = 90, // No error for SOCKS4
SOCKS4_FAIL = 91, // Failed establishing connecting or not allowed
SOCKS4_IDENTD_MISSING = 92, // Couldn't connect to the identd server

View file

@ -123,7 +123,7 @@ std::string I2PControlSession::Response::getErrorMsg() const
case ErrorCode::NonexistentToken:
return "Nonexistent authentication token given.";
case ErrorCode::ExpiredToken:
return "Exipred authentication token given.";
return "Expired authentication token given.";
case ErrorCode::UnspecifiedVersion:
return "Version not specified.";
case ErrorCode::UnsupportedVersion:

View file

@ -135,23 +135,23 @@ public:
std::string toJsonString() const;
/**
* Set an ouptut parameter to a specified string.
* Set an output parameter to a specified string.
* @todo escape quotes
*/
void setParam(const std::string& param, const std::string& value);
/**
* Set an ouptut parameter to a specified integer.
* Set an output parameter to a specified integer.
*/
void setParam(const std::string& param, int value);
/**
* Set an ouptut parameter to a specified double.
* Set an output parameter to a specified double.
*/
void setParam(const std::string& param, double value);
/**
* Set an ouptut parameter to a specified Json object.
* Set an output parameter to a specified Json object.
*/
void setParam(const std::string& param, const JsonObject& value);