Browse Source

Fix typos

pull/2003/head
Dimitris Apostolou 12 months ago
parent
commit
577c71b930
No known key found for this signature in database
GPG Key ID: 4B5D20E938204A8A
  1. 2
      libi2pd/Datagram.h
  2. 2
      libi2pd/NTCP2.cpp
  3. 2
      libi2pd/RouterInfo.cpp
  4. 2
      libi2pd/TunnelPool.cpp
  5. 2
      libi2pd_client/UDPTunnel.h

2
libi2pd/Datagram.h

@ -150,7 +150,7 @@ namespace datagram @@ -150,7 +150,7 @@ namespace datagram
void HandleDatagram (uint16_t fromPort, uint16_t toPort, uint8_t *const& buf, size_t len);
void HandleRawDatagram (uint16_t fromPort, uint16_t toPort, const uint8_t * buf, size_t len);
/** find a receiver by port, if none by port is found try default receiever, otherwise returns nullptr */
/** find a receiver by port, if none by port is found try default receiver, otherwise returns nullptr */
Receiver FindReceiver(uint16_t port);
private:

2
libi2pd/NTCP2.cpp

@ -1234,7 +1234,7 @@ namespace transport @@ -1234,7 +1234,7 @@ namespace transport
void NTCP2Session::SendLocalRouterInfo (bool update)
{
if (update || !IsOutgoing ()) // we send it in SessionConfirmed for ougoing session
if (update || !IsOutgoing ()) // we send it in SessionConfirmed for outgoing session
m_Server.GetService ().post (std::bind (&NTCP2Session::SendRouterInfo, shared_from_this ()));
}

2
libi2pd/RouterInfo.cpp

@ -995,7 +995,7 @@ namespace data @@ -995,7 +995,7 @@ namespace data
bool RouterInfo::IsPublished (bool v4) const
{
if (m_Caps & (eUnreachable | eHidden)) return false; // if router sets U or H we assume that all addreses are not published
if (m_Caps & (eUnreachable | eHidden)) return false; // if router sets U or H we assume that all addresses are not published
auto addr = GetAddresses ();
if (v4)
return ((*addr)[eNTCP2V4Idx] && ((*addr)[eNTCP2V4Idx])->published) ||

2
libi2pd/TunnelPool.cpp

@ -301,7 +301,7 @@ namespace tunnel @@ -301,7 +301,7 @@ namespace tunnel
{
for (auto it: m_OutboundTunnels)
{
// try to create inbound tunnel through the same path as succesive outbound
// try to create inbound tunnel through the same path as successive outbound
CreatePairedInboundTunnel (it);
num++;
if (num >= m_NumInboundTunnels) break;

2
libi2pd_client/UDPTunnel.h

@ -72,7 +72,7 @@ namespace client @@ -72,7 +72,7 @@ namespace client
boost::asio::ip::udp::endpoint LocalEndpoint;
/** client's udp endpoint */
boost::asio::ip::udp::endpoint RemoteEndpoint;
/** how long has this converstation been idle in ms */
/** how long has this conversation been idle in ms */
uint64_t idle;
};

Loading…
Cancel
Save