public OClientConnection getConnection ( final int iChannelId , ONetworkProtocol protocol ) { // SEARCH THE CONNECTION BY ID OClientConnection connection = connections . get ( iChannelId ) ; if ( connection != null ) connection . setProtocol ( protocol ) ; return connection ; }
Retrieves the connection by id .