Changeset 323:ecd65a63071f in finroc_core-java


Ignore:
Timestamp:
15.07.2019 07:45:46 (3 months ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Message:

Adds and integrates isFullyConnected() method to Connection class - for additional diagnostics

Location:
net/generic_protocol
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • net/generic_protocol/Connection.java

    r321 r323  
    410410     */ 
    411411    public abstract boolean pingTimeExceeed(); 
     412 
     413    public abstract boolean isFullyConnected(); 
    412414} 
  • net/generic_protocol/RemoteRuntime.java

    r322 r323  
    296296     */ 
    297297    public float getConnectionQuality() { 
    298         if (primaryConnection == null || expressConnection == null || primaryConnection.disconnecting() || expressConnection.disconnecting()) { 
     298        if (primaryConnection == null || expressConnection == null || primaryConnection.disconnecting() || expressConnection.disconnecting() || (!primaryConnection.isFullyConnected()) || (!expressConnection.isFullyConnected())) { 
    299299            return 0; 
    300300        } 
Note: See TracChangeset for help on using the changeset viewer.