FileDocCategorySizeDatePackage
VirtualServerChannelSelectorFactory.javaAPI DocAzureus 3.0.3.42591Sun Jun 18 05:22:52 BST 2006com.aelitis.azureus.core.networkmanager

VirtualServerChannelSelectorFactory

public class VirtualServerChannelSelectorFactory extends Object

Fields Summary
Constructors Summary
Methods Summary
public static VirtualServerChannelSelectorcreateBlocking(java.net.InetSocketAddress bind_address, int so_rcvbuf_size, VirtualServerChannelSelector.SelectListener listener)

		return( new VirtualBlockingServerChannelSelector( bind_address, so_rcvbuf_size, listener ));
	
public static VirtualServerChannelSelectorcreateNonBlocking(java.net.InetSocketAddress bind_address, int so_rcvbuf_size, VirtualServerChannelSelector.SelectListener listener)

		return( new VirtualNonBlockingServerChannelSelector( bind_address, so_rcvbuf_size, listener ));
	
public static VirtualServerChannelSelectorcreateTest(java.net.InetSocketAddress bind_address, int so_rcvbuf_size, VirtualServerChannelSelector.SelectListener listener)

			// test param to allow multiple ports to be created
		
		 int	range = COConfigurationManager.getIntParameter( "TCP.Listen.Port.Range", -1 );

		 if ( range == -1 ){
			
			 return( createBlocking( bind_address, so_rcvbuf_size, listener ));
			 
		 }else{
			
			 return( new VirtualNonBlockingServerChannelSelector( 
					 		bind_address.getAddress(),
					 		bind_address.getPort(), 
					 		range,
					 		so_rcvbuf_size, listener ));
		 }