question: private static Collection < TCPTransport > allKnownTransports ( ) { Set < TCPTransport > s ; synchronized ( localEndpoints ) { s = new HashSet < TCPTransport > ( localEndpoints . size ( ) ) ; for ( LinkedList < TCPEndpoint > epList : localEndpoints . values ( ) ) { TCPEndpoint ep = epList . getFirst ( ) ; s . add ( ep . transport ) ; } } return s ; }
target:  Returns the current list of known transports. The returned list is an unshared collection of Transports, including all transports which may have channels to remote endpoints.