IPortAllocator Methods
InterfaceMethods2 members
Provides port allocation functionality for resources.
Marks a port as used to prevent it from being allocated.
public interface IPortAllocator{ public abstract void AddUsedPort( int port) { // ... }}Parameters
portintThe port number to mark as used. Allocates a port that is not currently in use.
public interface IPortAllocator{ public abstract int AllocatePort() { // ... }}Returns
intAn available port number.