Ja.NET Standard Edition 5.0

Documentation API Specification

Contents

OSNetworkSystem Class Reference

Inherits org::apache::harmony::luni::platform::INetworkSystem.

List of all members.


Public Member Functions

void createSocket (FileDescriptor fd, boolean preferIPv4Stack) throws IOException
void createDatagramSocket (FileDescriptor fd, boolean preferIPv4Stack) throws SocketException
int read (FileDescriptor aFD, byte[] data, int offset, int count, int timeout) throws IOException
int readDirect (FileDescriptor aFD, long address, int count, int timeout) throws IOException
int write (FileDescriptor aFD, byte[] data, int offset, int count) throws IOException
int writeDirect (FileDescriptor aFD, long address, int count) throws IOException
void setNonBlocking (FileDescriptor aFD, boolean block) throws IOException
void connectDatagram (FileDescriptor aFD, int port, int trafficClass, InetAddress inetAddress) throws SocketException
int connect (FileDescriptor aFD, int trafficClass, InetAddress inetAddress, int port) throws IOException
int connectWithTimeout (FileDescriptor aFD, int timeout, int trafficClass, InetAddress inetAddress, int port, int step, Long context) throws IOException
void connectStreamWithTimeoutSocket (FileDescriptor aFD, int aport, int timeout, int trafficClass, InetAddress inetAddress) throws IOException
void bind (FileDescriptor aFD, int port, InetAddress inetAddress) throws SocketException
boolean bind2 (FileDescriptor aFD, int port, boolean bindToDevice, InetAddress inetAddress) throws SocketException
void accept (FileDescriptor fdServer, SocketImpl newSocket, FileDescriptor fdnewSocket, int timeout) throws IOException
int sendDatagram (FileDescriptor fd, byte[] data, int offset, int length, int port, boolean bindToDevice, int trafficClass, InetAddress inetAddress) throws IOException
int sendDatagramDirect (FileDescriptor fd, long address, int offset, int length, int port, boolean bindToDevice, int trafficClass, InetAddress inetAddress) throws IOException
int sendDatagram2 (FileDescriptor fd, byte[] data, int offset, int length, int port, InetAddress inetAddress) throws IOException
int receiveDatagram (FileDescriptor aFD, DatagramPacket packet, byte[] data, int offset, int length, int receiveTimeout, boolean peek) throws IOException
int receiveDatagramDirect (FileDescriptor aFD, DatagramPacket packet, long address, int offset, int length, int receiveTimeout, boolean peek) throws IOException
int recvConnectedDatagram (FileDescriptor aFD, DatagramPacket packet, byte[] data, int offset, int length, int receiveTimeout, boolean peek) throws IOException
int recvConnectedDatagramDirect (FileDescriptor aFD, DatagramPacket packet, long address, int offset, int length, int receiveTimeout, boolean peek) throws IOException
int peekDatagram (FileDescriptor aFD, InetAddress sender, int receiveTimeout) throws IOException
int sendConnectedDatagram (FileDescriptor fd, byte[] data, int offset, int length, boolean bindToDevice) throws IOException
int sendConnectedDatagramDirect (FileDescriptor fd, long address, int offset, int length, boolean bindToDevice) throws IOException
void disconnectDatagram (FileDescriptor aFD) throws SocketException
void createMulticastSocket (FileDescriptor aFD, boolean preferIPv4Stack) throws SocketException
void createServerStreamSocket (FileDescriptor aFD, boolean preferIPv4Stack) throws SocketException
int receiveStream (FileDescriptor aFD, byte[] data, int offset, int count, int timeout) throws IOException
int sendStream (FileDescriptor fd, byte[] data, int offset, int count) throws IOException
void shutdownInput (FileDescriptor descriptor) throws IOException
void shutdownOutput (FileDescriptor descriptor) throws IOException
boolean supportsUrgentData (FileDescriptor fd)
void sendUrgentData (FileDescriptor fd, byte value)
int availableStream (FileDescriptor aFD) throws SocketException
void acceptStreamSocket (FileDescriptor fdServer, SocketImpl newSocket, FileDescriptor fdnewSocket, int timeout) throws IOException
void createStreamSocket (FileDescriptor aFD, boolean preferIPv4Stack) throws SocketException
void listenStreamSocket (FileDescriptor aFD, int backlog) throws SocketException
boolean isReachableByICMP (final InetAddress dest, InetAddress source, final int ttl, final int timeout)
int[] select (FileDescriptor[] readFDs, FileDescriptor[] writeFDs, long timeout) throws SocketException
 Select the given file descriptors for read and write operations.
InetAddress getSocketLocalAddress (FileDescriptor aFD, boolean preferIPv6Addresses)
int getSocketLocalPort (FileDescriptor aFD, boolean preferIPv6Addresses)
Object getSocketOption (FileDescriptor aFD, int opt) throws SocketException
void setSocketOption (FileDescriptor aFD, int opt, Object optVal) throws SocketException
int getSocketFlags ()
void socketClose (FileDescriptor aFD) throws IOException
InetAddress getHostByAddr (byte[] addr) throws UnknownHostException
InetAddress getHostByName (String addr, boolean preferIPv6Addresses) throws UnknownHostException
void setInetAddress (InetAddress sender, byte[] address)
Channel inheritedChannel ()
void oneTimeInitialization (boolean jcl_supports_ipv6)

Static Public Member Functions

static OSNetworkSystem getOSNetworkSystem ()

Package Functions

native void setInetAddressImpl (InetAddress sender, byte[] address)
native int isReachableByICMPImpl (InetAddress addr, InetAddress local, int ttl, int timeout)
native Channel inheritedChannelImpl ()
native void oneTimeInitializationImpl (boolean jcl_supports_ipv6)

Static Package Functions

static native void createSocketImpl (FileDescriptor fd, boolean preferIPv4Stack)
static native void createDatagramSocketImpl (FileDescriptor aFD, boolean preferIPv4Stack) throws SocketException
static native int readSocketImpl (FileDescriptor aFD, byte[] data, int offset, int count, int timeout) throws IOException
static native int readSocketDirectImpl (FileDescriptor aFD, long address, int count, int timeout) throws IOException
static native int writeSocketImpl (FileDescriptor fd, byte[] data, int offset, int count) throws IOException
static native int writeSocketDirectImpl (FileDescriptor fd, long address, int count) throws IOException
static native void setNonBlockingImpl (FileDescriptor aFD, boolean block)
static native int connectSocketImpl (FileDescriptor aFD, int trafficClass, InetAddress inetAddress, int port)
static native int connectWithTimeoutSocketImpl (FileDescriptor aFD, int timeout, int trafficClass, InetAddress hostname, int port, int step, Long context)
static native void connectStreamWithTimeoutSocketImpl (FileDescriptor aFD, int aport, int timeout, int trafficClass, InetAddress inetAddress) throws IOException
static native void socketBindImpl (FileDescriptor aFD, int port, InetAddress inetAddress) throws SocketException
static native void listenStreamSocketImpl (FileDescriptor aFD, int backlog) throws SocketException
static native int availableStreamImpl (FileDescriptor aFD) throws SocketException
static native void acceptSocketImpl (FileDescriptor fdServer, SocketImpl newSocket, FileDescriptor fdnewSocket, int timeout) throws IOException
static native boolean supportsUrgentDataImpl (FileDescriptor fd)
static native void sendUrgentDataImpl (FileDescriptor fd, byte value)
static native void connectDatagramImpl2 (FileDescriptor aFD, int port, int trafficClass, InetAddress inetAddress) throws SocketException
static native void disconnectDatagramImpl (FileDescriptor aFD) throws SocketException
static native boolean socketBindImpl2 (FileDescriptor aFD, int port, boolean bindToDevice, InetAddress inetAddress) throws SocketException
static native int peekDatagramImpl (FileDescriptor aFD, InetAddress sender, int receiveTimeout) throws IOException
static native int receiveDatagramImpl (FileDescriptor aFD, DatagramPacket packet, byte[] data, int offset, int length, int receiveTimeout, boolean peek) throws IOException
static native int receiveDatagramDirectImpl (FileDescriptor aFD, DatagramPacket packet, long address, int offset, int length, int receiveTimeout, boolean peek) throws IOException
static native int recvConnectedDatagramImpl (FileDescriptor aFD, DatagramPacket packet, byte[] data, int offset, int length, int receiveTimeout, boolean peek) throws IOException
static native int recvConnectedDatagramDirectImpl (FileDescriptor aFD, DatagramPacket packet, long address, int offset, int length, int receiveTimeout, boolean peek) throws IOException
static native int sendDatagramImpl (FileDescriptor fd, byte[] data, int offset, int length, int port, boolean bindToDevice, int trafficClass, InetAddress inetAddress) throws IOException
static native int sendDatagramDirectImpl (FileDescriptor fd, long address, int offset, int length, int port, boolean bindToDevice, int trafficClass, InetAddress inetAddress) throws IOException
static native int sendConnectedDatagramImpl (FileDescriptor fd, byte[] data, int offset, int length, boolean bindToDevice) throws IOException
static native int sendConnectedDatagramDirectImpl (FileDescriptor fd, long address, int offset, int length, boolean bindToDevice) throws IOException
static native void createServerStreamSocketImpl (FileDescriptor aFD, boolean preferIPv4Stack) throws SocketException
static native void createMulticastSocketImpl (FileDescriptor aFD, boolean preferIPv4Stack) throws SocketException
static native int receiveStreamImpl (FileDescriptor aFD, byte[] data, int offset, int count, int timeout) throws IOException
static native int sendStreamImpl (FileDescriptor fd, byte[] data, int offset, int count) throws IOException
static native void acceptStreamSocketImpl (FileDescriptor fdServer, SocketImpl newSocket, FileDescriptor fdnewSocket, int timeout) throws IOException
static native void createStreamSocketImpl (FileDescriptor aFD, boolean preferIPv4Stack) throws SocketException
static native int sendDatagramImpl2 (FileDescriptor fd, byte[] data, int offset, int length, int port, InetAddress inetAddress) throws IOException
static native int selectImpl (FileDescriptor[] readfd, FileDescriptor[] writefd, int cread, int cwirte, int[] flags, long timeout)
static native InetAddress getSocketLocalAddressImpl (FileDescriptor aFD, boolean preferIPv6Addresses)
static native int getSocketLocalPortImpl (FileDescriptor aFD, boolean preferIPv6Addresses)
static native Object getSocketOptionImpl (FileDescriptor aFD, int opt) throws SocketException
static native void setSocketOptionImpl (FileDescriptor aFD, int opt, Object optVal) throws SocketException
static native int getSocketFlagsImpl ()
static native void socketCloseImpl (FileDescriptor aFD)
static native InetAddress getHostByAddrImpl (byte[] addr) throws UnknownHostException
static native InetAddress getHostByNameImpl (String addr, boolean preferIPv6Addresses) throws UnknownHostException

Private Member Functions

 OSNetworkSystem ()
boolean validateFDs (FileDescriptor[] readFDs, FileDescriptor[] writeFDs)
native void shutdownInputImpl (FileDescriptor descriptor) throws IOException
native void shutdownOutputImpl (FileDescriptor descriptor) throws IOException

Static Private Attributes

static final int ERRORCODE_SOCKET_TIMEOUT = -209
static OSNetworkSystem ref = new OSNetworkSystem()
static final int INETADDR_REACHABLE = 0
static boolean isNetworkInited = false

Constructor & Destructor Documentation

OSNetworkSystem (  )  [private]


Member Function Documentation

static OSNetworkSystem getOSNetworkSystem (  )  [static]

void createSocket ( FileDescriptor  fd,
boolean  preferIPv4Stack 
) throws IOException

Implements INetworkSystem.

void createDatagramSocket ( FileDescriptor  fd,
boolean  preferIPv4Stack 
) throws SocketException

Implements INetworkSystem.

int read ( FileDescriptor  aFD,
byte[]  data,
int  offset,
int  count,
int  timeout 
) throws IOException

Implements INetworkSystem.

int readDirect ( FileDescriptor  aFD,
long  address,
int  count,
int  timeout 
) throws IOException

Implements INetworkSystem.

int write ( FileDescriptor  aFD,
byte[]  data,
int  offset,
int  count 
) throws IOException

Implements INetworkSystem.

int writeDirect ( FileDescriptor  aFD,
long  address,
int  count 
) throws IOException

Implements INetworkSystem.

void setNonBlocking ( FileDescriptor  aFD,
boolean  block 
) throws IOException

Implements INetworkSystem.

void connectDatagram ( FileDescriptor  aFD,
int  port,
int  trafficClass,
InetAddress  inetAddress 
) throws SocketException

Implements INetworkSystem.

int connect ( FileDescriptor  aFD,
int  trafficClass,
InetAddress  inetAddress,
int  port 
) throws IOException

Implements INetworkSystem.

int connectWithTimeout ( FileDescriptor  aFD,
int  timeout,
int  trafficClass,
InetAddress  inetAddress,
int  port,
int  step,
Long  context 
) throws IOException

Implements INetworkSystem.

void connectStreamWithTimeoutSocket ( FileDescriptor  aFD,
int  aport,
int  timeout,
int  trafficClass,
InetAddress  inetAddress 
) throws IOException

Implements INetworkSystem.

void bind ( FileDescriptor  aFD,
int  port,
InetAddress  inetAddress 
) throws SocketException

Implements INetworkSystem.

boolean bind2 ( FileDescriptor  aFD,
int  port,
boolean  bindToDevice,
InetAddress  inetAddress 
) throws SocketException

Implements INetworkSystem.

void accept ( FileDescriptor  fdServer,
SocketImpl  newSocket,
FileDescriptor  fdnewSocket,
int  timeout 
) throws IOException

Implements INetworkSystem.

int sendDatagram ( FileDescriptor  fd,
byte[]  data,
int  offset,
int  length,
int  port,
boolean  bindToDevice,
int  trafficClass,
InetAddress  inetAddress 
) throws IOException

Implements INetworkSystem.

int sendDatagramDirect ( FileDescriptor  fd,
long  address,
int  offset,
int  length,
int  port,
boolean  bindToDevice,
int  trafficClass,
InetAddress  inetAddress 
) throws IOException

Implements INetworkSystem.

int sendDatagram2 ( FileDescriptor  fd,
byte[]  data,
int  offset,
int  length,
int  port,
InetAddress  inetAddress 
) throws IOException

Implements INetworkSystem.

int receiveDatagram ( FileDescriptor  aFD,
DatagramPacket  packet,
byte[]  data,
int  offset,
int  length,
int  receiveTimeout,
boolean  peek 
) throws IOException

Implements INetworkSystem.

int receiveDatagramDirect ( FileDescriptor  aFD,
DatagramPacket  packet,
long  address,
int  offset,
int  length,
int  receiveTimeout,
boolean  peek 
) throws IOException

Implements INetworkSystem.

int recvConnectedDatagram ( FileDescriptor  aFD,
DatagramPacket  packet,
byte[]  data,
int  offset,
int  length,
int  receiveTimeout,
boolean  peek 
) throws IOException

Implements INetworkSystem.

int recvConnectedDatagramDirect ( FileDescriptor  aFD,
DatagramPacket  packet,
long  address,
int  offset,
int  length,
int  receiveTimeout,
boolean  peek 
) throws IOException

Implements INetworkSystem.

int peekDatagram ( FileDescriptor  aFD,
InetAddress  sender,
int  receiveTimeout 
) throws IOException

Implements INetworkSystem.

int sendConnectedDatagram ( FileDescriptor  fd,
byte[]  data,
int  offset,
int  length,
boolean  bindToDevice 
) throws IOException

Implements INetworkSystem.

int sendConnectedDatagramDirect ( FileDescriptor  fd,
long  address,
int  offset,
int  length,
boolean  bindToDevice 
) throws IOException

Implements INetworkSystem.

void disconnectDatagram ( FileDescriptor  aFD  )  throws SocketException

Implements INetworkSystem.

void createMulticastSocket ( FileDescriptor  aFD,
boolean  preferIPv4Stack 
) throws SocketException

Implements INetworkSystem.

void createServerStreamSocket ( FileDescriptor  aFD,
boolean  preferIPv4Stack 
) throws SocketException

Implements INetworkSystem.

int receiveStream ( FileDescriptor  aFD,
byte[]  data,
int  offset,
int  count,
int  timeout 
) throws IOException

Implements INetworkSystem.

int sendStream ( FileDescriptor  fd,
byte[]  data,
int  offset,
int  count 
) throws IOException

Implements INetworkSystem.

void shutdownInput ( FileDescriptor  descriptor  )  throws IOException

Implements INetworkSystem.

void shutdownOutput ( FileDescriptor  descriptor  )  throws IOException

Implements INetworkSystem.

boolean supportsUrgentData ( FileDescriptor  fd  ) 

Implements INetworkSystem.

void sendUrgentData ( FileDescriptor  fd,
byte  value 
)

Implements INetworkSystem.

int availableStream ( FileDescriptor  aFD  )  throws SocketException

Implements INetworkSystem.

void acceptStreamSocket ( FileDescriptor  fdServer,
SocketImpl  newSocket,
FileDescriptor  fdnewSocket,
int  timeout 
) throws IOException

Implements INetworkSystem.

void createStreamSocket ( FileDescriptor  aFD,
boolean  preferIPv4Stack 
) throws SocketException

Implements INetworkSystem.

void listenStreamSocket ( FileDescriptor  aFD,
int  backlog 
) throws SocketException

Implements INetworkSystem.

boolean isReachableByICMP ( final InetAddress  dest,
InetAddress  source,
final int  ttl,
final int  timeout 
)

int [] select ( FileDescriptor[]  readFDs,
FileDescriptor[]  writeFDs,
long  timeout 
) throws SocketException

Select the given file descriptors for read and write operations.

The file descriptors passed in as readFDs will be selected for read-ready operations, and those in the writeFDs will be selected for write-ready operations. A file descriptor can appear in either or both array, and must not be null. If the file descriptor is closed during the select the behavior depends upon the underlying OS.

Upon return the result is a single array of length readFDs.length + writeFDs.length laid out as the result of the select operation on the corresponding file descriptors.

Parameters:
readChannels all channels interested in read and accept
writeChannels all channels interested in write and connect
timeout timeout in millis
Returns:
int array, each element describes the corresponding state of the descriptor in the read and write arrays.
Exceptions:
SocketException 

Implements INetworkSystem.

boolean validateFDs ( FileDescriptor[]  readFDs,
FileDescriptor[]  writeFDs 
) [private]

InetAddress getSocketLocalAddress ( FileDescriptor  aFD,
boolean  preferIPv6Addresses 
)

Implements INetworkSystem.

int getSocketLocalPort ( FileDescriptor  aFD,
boolean  preferIPv6Addresses 
)

Implements INetworkSystem.

Object getSocketOption ( FileDescriptor  aFD,
int  opt 
) throws SocketException

Implements INetworkSystem.

void setSocketOption ( FileDescriptor  aFD,
int  opt,
Object  optVal 
) throws SocketException

Implements INetworkSystem.

int getSocketFlags (  ) 

Implements INetworkSystem.

void socketClose ( FileDescriptor  aFD  )  throws IOException

Implements INetworkSystem.

InetAddress getHostByAddr ( byte[]  addr  )  throws UnknownHostException

Implements INetworkSystem.

InetAddress getHostByName ( String  addr,
boolean  preferIPv6Addresses 
) throws UnknownHostException

Implements INetworkSystem.

void setInetAddress ( InetAddress  sender,
byte[]  address 
)

Implements INetworkSystem.

static native void createSocketImpl ( FileDescriptor  fd,
boolean  preferIPv4Stack 
) [static, package]

static native void createDatagramSocketImpl ( FileDescriptor  aFD,
boolean  preferIPv4Stack 
) throws SocketException [static, package]

static native int readSocketImpl ( FileDescriptor  aFD,
byte[]  data,
int  offset,
int  count,
int  timeout 
) throws IOException [static, package]

static native int readSocketDirectImpl ( FileDescriptor  aFD,
long  address,
int  count,
int  timeout 
) throws IOException [static, package]

static native int writeSocketImpl ( FileDescriptor  fd,
byte[]  data,
int  offset,
int  count 
) throws IOException [static, package]

static native int writeSocketDirectImpl ( FileDescriptor  fd,
long  address,
int  count 
) throws IOException [static, package]

static native void setNonBlockingImpl ( FileDescriptor  aFD,
boolean  block 
) [static, package]

static native int connectSocketImpl ( FileDescriptor  aFD,
int  trafficClass,
InetAddress  inetAddress,
int  port 
) [static, package]

static native int connectWithTimeoutSocketImpl ( FileDescriptor  aFD,
int  timeout,
int  trafficClass,
InetAddress  hostname,
int  port,
int  step,
Long  context 
) [static, package]

static native void connectStreamWithTimeoutSocketImpl ( FileDescriptor  aFD,
int  aport,
int  timeout,
int  trafficClass,
InetAddress  inetAddress 
) throws IOException [static, package]

static native void socketBindImpl ( FileDescriptor  aFD,
int  port,
InetAddress  inetAddress 
) throws SocketException [static, package]

static native void listenStreamSocketImpl ( FileDescriptor  aFD,
int  backlog 
) throws SocketException [static, package]

static native int availableStreamImpl ( FileDescriptor  aFD  )  throws SocketException [static, package]

static native void acceptSocketImpl ( FileDescriptor  fdServer,
SocketImpl  newSocket,
FileDescriptor  fdnewSocket,
int  timeout 
) throws IOException [static, package]

static native boolean supportsUrgentDataImpl ( FileDescriptor  fd  )  [static, package]

static native void sendUrgentDataImpl ( FileDescriptor  fd,
byte  value 
) [static, package]

static native void connectDatagramImpl2 ( FileDescriptor  aFD,
int  port,
int  trafficClass,
InetAddress  inetAddress 
) throws SocketException [static, package]

static native void disconnectDatagramImpl ( FileDescriptor  aFD  )  throws SocketException [static, package]

static native boolean socketBindImpl2 ( FileDescriptor  aFD,
int  port,
boolean  bindToDevice,
InetAddress  inetAddress 
) throws SocketException [static, package]

static native int peekDatagramImpl ( FileDescriptor  aFD,
InetAddress  sender,
int  receiveTimeout 
) throws IOException [static, package]

static native int receiveDatagramImpl ( FileDescriptor  aFD,
DatagramPacket  packet,
byte[]  data,
int  offset,
int  length,
int  receiveTimeout,
boolean  peek 
) throws IOException [static, package]

static native int receiveDatagramDirectImpl ( FileDescriptor  aFD,
DatagramPacket  packet,
long  address,
int  offset,
int  length,
int  receiveTimeout,
boolean  peek 
) throws IOException [static, package]

static native int recvConnectedDatagramImpl ( FileDescriptor  aFD,
DatagramPacket  packet,
byte[]  data,
int  offset,
int  length,
int  receiveTimeout,
boolean  peek 
) throws IOException [static, package]

static native int recvConnectedDatagramDirectImpl ( FileDescriptor  aFD,
DatagramPacket  packet,
long  address,
int  offset,
int  length,
int  receiveTimeout,
boolean  peek 
) throws IOException [static, package]

static native int sendDatagramImpl ( FileDescriptor  fd,
byte[]  data,
int  offset,
int  length,
int  port,
boolean  bindToDevice,
int  trafficClass,
InetAddress  inetAddress 
) throws IOException [static, package]

static native int sendDatagramDirectImpl ( FileDescriptor  fd,
long  address,
int  offset,
int  length,
int  port,
boolean  bindToDevice,
int  trafficClass,
InetAddress  inetAddress 
) throws IOException [static, package]

static native int sendConnectedDatagramImpl ( FileDescriptor  fd,
byte[]  data,
int  offset,
int  length,
boolean  bindToDevice 
) throws IOException [static, package]

static native int sendConnectedDatagramDirectImpl ( FileDescriptor  fd,
long  address,
int  offset,
int  length,
boolean  bindToDevice 
) throws IOException [static, package]

static native void createServerStreamSocketImpl ( FileDescriptor  aFD,
boolean  preferIPv4Stack 
) throws SocketException [static, package]

static native void createMulticastSocketImpl ( FileDescriptor  aFD,
boolean  preferIPv4Stack 
) throws SocketException [static, package]

static native int receiveStreamImpl ( FileDescriptor  aFD,
byte[]  data,
int  offset,
int  count,
int  timeout 
) throws IOException [static, package]

static native int sendStreamImpl ( FileDescriptor  fd,
byte[]  data,
int  offset,
int  count 
) throws IOException [static, package]

native void shutdownInputImpl ( FileDescriptor  descriptor  )  throws IOException [private]

native void shutdownOutputImpl ( FileDescriptor  descriptor  )  throws IOException [private]

static native void acceptStreamSocketImpl ( FileDescriptor  fdServer,
SocketImpl  newSocket,
FileDescriptor  fdnewSocket,
int  timeout 
) throws IOException [static, package]

static native void createStreamSocketImpl ( FileDescriptor  aFD,
boolean  preferIPv4Stack 
) throws SocketException [static, package]

static native int sendDatagramImpl2 ( FileDescriptor  fd,
byte[]  data,
int  offset,
int  length,
int  port,
InetAddress  inetAddress 
) throws IOException [static, package]

static native int selectImpl ( FileDescriptor[]  readfd,
FileDescriptor[]  writefd,
int  cread,
int  cwirte,
int[]  flags,
long  timeout 
) [static, package]

static native InetAddress getSocketLocalAddressImpl ( FileDescriptor  aFD,
boolean  preferIPv6Addresses 
) [static, package]

static native int getSocketLocalPortImpl ( FileDescriptor  aFD,
boolean  preferIPv6Addresses 
) [static, package]

static native Object getSocketOptionImpl ( FileDescriptor  aFD,
int  opt 
) throws SocketException [static, package]

static native void setSocketOptionImpl ( FileDescriptor  aFD,
int  opt,
Object  optVal 
) throws SocketException [static, package]

static native int getSocketFlagsImpl (  )  [static, package]

static native void socketCloseImpl ( FileDescriptor  aFD  )  [static, package]

static native InetAddress getHostByAddrImpl ( byte[]  addr  )  throws UnknownHostException [static, package]

static native InetAddress getHostByNameImpl ( String  addr,
boolean  preferIPv6Addresses 
) throws UnknownHostException [static, package]

native void setInetAddressImpl ( InetAddress  sender,
byte[]  address 
) [package]

native int isReachableByICMPImpl ( InetAddress  addr,
InetAddress  local,
int  ttl,
int  timeout 
) [package]

native Channel inheritedChannelImpl (  )  [package]

Channel inheritedChannel (  ) 

Implements INetworkSystem.

void oneTimeInitialization ( boolean  jcl_supports_ipv6  ) 

Implements INetworkSystem.

native void oneTimeInitializationImpl ( boolean  jcl_supports_ipv6  )  [package]


Member Data Documentation

final int ERRORCODE_SOCKET_TIMEOUT = -209 [static, private]

OSNetworkSystem ref = new OSNetworkSystem() [static, private]

final int INETADDR_REACHABLE = 0 [static, private]

boolean isNetworkInited = false [static, private]