public ConnectionTcp findConnectionByThreadId(long threadId){
  for (  PortTcp listener : getPorts()) {
    ConnectionTcp conn=listener.findConnectionByThreadId(threadId);
    if (conn != null)     return conn;
  }
  return null;
}

public ConnectionTcp findConnectionByThreadId ( long threadId ) { for ( PortTcp listener : getPorts ( ) ) { ConnectionTcp conn = listener . findConnectionByThreadId ( threadId ) ; if ( conn != null ) return conn ; } return null ; }
finds the tcpconnection given the threadid
