org.openmuc.canopen.lib
Class CLibrary.fd_set

java.lang.Object
  extended by com.sun.jna.Structure
      extended by org.openmuc.canopen.lib.CLibrary.fd_set
Direct Known Subclasses:
CLibrary.fd_set.ByReference
Enclosing interface:
CLibrary

public static class CLibrary.fd_set
extends com.sun.jna.Structure

Implements the C-structure fd_set.


Nested Class Summary
static class CLibrary.fd_set.ByReference
           
 
Nested classes/interfaces inherited from class com.sun.jna.Structure
com.sun.jna.Structure.ByValue
 
Field Summary
 com.sun.jna.NativeLong[] __fds_bits
           
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
Constructor Summary
CLibrary.fd_set()
           
 
Method Summary
 void set(int fd)
          #define FD_SET(fd, fdsetp)
 
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, clear, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldOrder, getFields, getFieldTypeInfo, getNativeAlignment, getNativeSize, getPointer, getStructAlignment, hashCode, newInstance, read, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setTypeMapper, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

__fds_bits

public com.sun.jna.NativeLong[] __fds_bits
Constructor Detail

CLibrary.fd_set

public CLibrary.fd_set()
Method Detail

set

public void set(int fd)
#define FD_SET(fd, fdsetp)

 (((fdsetp)->__fds_bits)[((fd) / (8 * sizeof(unsigned long)))] |= (1UL << ((fd) % (8 * sizeof(unsigned long)))))
 

Parameters:
fd - File descriptor