Changeset 169:e94a71638fc7 in finroc_plugins_tcp


Ignore:
Timestamp:
20.03.2019 22:23:23 (6 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
17.03
Children:
170:a28a3b2c9ffb, 171:8193b6852e32
Phase:
public
Message:

Fixes clang compiler warnings

Location:
internal
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • internal/tConnection.cpp

    r163 r169  
    7171 
    7272static const size_t cINITIAL_READ_BUFFER_SIZE = 32768; 
    73 static const size_t cINITIAL_WRITE_BUFFER_SIZE = 32768; 
    7473 
    7574static const size_t cMAX_MESSAGE_BATCH_SIZE = 300000000; // more than 30 MB 
     
    226225 
    227226        connection->peer.AddAddress(message.Get<5>()); 
    228         connection->SharedConnectionInfo().remote_runtime = connection->peer.GetRemoteRuntime(connection, message.Get<0>(), message.Get<1>(), message.Get<2>(), 
     227        connection->SharedConnectionInfo().remote_runtime = connection->peer.GetOrCreateRemoteRuntime(connection, message.Get<0>(), message.Get<1>(), message.Get<2>(), 
    229228            connection->socket->remote_endpoint().address(), connection->never_forget); 
    230229        connection->flags |= message.Get<4>() & 0xFF; 
  • internal/tPeerImplementation.cpp

    r167 r169  
    383383} 
    384384 
    385 network_transport::generic_protocol::tRemoteRuntime* tPeerImplementation::GetRemoteRuntime(std::shared_ptr<tConnection>& connection, const tUUID& uuid, tPeerType peer_type, const std::string& peer_name, const boost::asio::ip::address& address, bool never_forget) 
     385network_transport::generic_protocol::tRemoteRuntime* tPeerImplementation::GetOrCreateRemoteRuntime(std::shared_ptr<tConnection>& connection, const tUUID& uuid, tPeerType peer_type, const std::string& peer_name, const boost::asio::ip::address& address, bool never_forget) 
    386386{ 
    387387  if (uuid == this->this_peer.uuid) 
  • internal/tPeerImplementation.h

    r167 r169  
    123123 
    124124  /*! 
    125    * Gets remote runtime with specified UUID. 
     125   * Obtains remote runtime with specified UUID. 
    126126   * If no such runtime has been registered yet, creates a new one. 
    127127   * 
     
    133133   * \return Pointer to remote runtime 
    134134   */ 
    135   network_transport::generic_protocol::tRemoteRuntime* GetRemoteRuntime(std::shared_ptr<tConnection>& connection, const tUUID& uuid, tPeerType peer_type, const std::string& peer_name, const boost::asio::ip::address& address, bool never_forget); 
     135  network_transport::generic_protocol::tRemoteRuntime* GetOrCreateRemoteRuntime(std::shared_ptr<tConnection>& connection, const tUUID& uuid, tPeerType peer_type, const std::string& peer_name, const boost::asio::ip::address& address, bool never_forget); 
    136136 
    137137  /*! 
Note: See TracChangeset for help on using the changeset viewer.