org.iids.aos.kernel.mux
Class LocalDescriptorTable

java.lang.Object
  extended by org.iids.aos.kernel.mux.LocalDescriptorTable

public class LocalDescriptorTable
extends java.lang.Object

The integers returned by createListenEndpoint(), accept() and connect() must all come from the same address space, to support the chosen select() interface. This table synchronizes all allocations.

Author:
arno

Field Summary
 LocalDescriptor ld
           
static int MAX_DESC
           
 
Constructor Summary
LocalDescriptorTable()
          Creates a new instance of LocalDescriptorTable
 
Method Summary
 int allocate(boolean isConnection)
           
 void allocate(int desc, boolean isConnection)
           
 void deallocate(int desc)
           
 boolean isConnection(int desc)
          lock before use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_DESC

public static final int MAX_DESC
See Also:
Constant Field Values

ld

public LocalDescriptor ld
Constructor Detail

LocalDescriptorTable

public LocalDescriptorTable()
Creates a new instance of LocalDescriptorTable

Method Detail

allocate

public int allocate(boolean isConnection)
             throws LimitExceededException
Throws:
LimitExceededException

allocate

public void allocate(int desc,
                     boolean isConnection)
              throws BadArgumentException
Throws:
BadArgumentException

deallocate

public void deallocate(int desc)

isConnection

public boolean isConnection(int desc)
                     throws BadArgumentException
lock before use

Throws:
BadArgumentException


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.