| java.lang.Object org.apache.harmony.luni.platform.OSNetworkSystem
Method Summary | |
public void | accept(FileDescriptor fdServer, SocketImpl newSocket, FileDescriptor fdnewSocket, int timeout) | native static void | acceptSocketImpl(FileDescriptor fdServer, SocketImpl newSocket, FileDescriptor fdnewSocket, int timeout) | public void | acceptStreamSocket(FileDescriptor fdServer, SocketImpl newSocket, FileDescriptor fdnewSocket, int timeout) | native static void | acceptStreamSocketImpl(FileDescriptor fdServer, SocketImpl newSocket, FileDescriptor fdnewSocket, int timeout) | public int | availableStream(FileDescriptor aFD) | native static int | availableStreamImpl(FileDescriptor aFD) | public void | bind(FileDescriptor aFD, int port, InetAddress inetAddress) | public boolean | bind2(FileDescriptor aFD, int port, boolean bindToDevice, InetAddress inetAddress) | public int | connect(FileDescriptor aFD, int trafficClass, InetAddress inetAddress, int port) | public void | connectDatagram(FileDescriptor aFD, int port, int trafficClass, InetAddress inetAddress) | native static void | connectDatagramImpl2(FileDescriptor aFD, int port, int trafficClass, InetAddress inetAddress) | native static int | connectSocketImpl(FileDescriptor aFD, int trafficClass, InetAddress inetAddress, int port) | public void | connectStreamWithTimeoutSocket(FileDescriptor aFD, int aport, int timeout, int trafficClass, InetAddress inetAddress) | native static void | connectStreamWithTimeoutSocketImpl(FileDescriptor aFD, int aport, int timeout, int trafficClass, InetAddress inetAddress) | public int | connectWithTimeout(FileDescriptor aFD, int timeout, int trafficClass, InetAddress inetAddress, int port, int step, Long context) | native static int | connectWithTimeoutSocketImpl(FileDescriptor aFD, int timeout, int trafficClass, InetAddress hostname, int port, int step, Long context) | public void | createDatagramSocket(FileDescriptor fd, boolean preferIPv4Stack) | native static void | createDatagramSocketImpl(FileDescriptor aFD, boolean preferIPv4Stack) | public void | createMulticastSocket(FileDescriptor aFD, boolean preferIPv4Stack) | native static void | createMulticastSocketImpl(FileDescriptor aFD, boolean preferIPv4Stack) | public void | createServerStreamSocket(FileDescriptor aFD, boolean preferIPv4Stack) | native static void | createServerStreamSocketImpl(FileDescriptor aFD, boolean preferIPv4Stack) | public void | createSocket(FileDescriptor fd, boolean preferIPv4Stack) | native static void | createSocketImpl(FileDescriptor fd, boolean preferIPv4Stack) | public void | createStreamSocket(FileDescriptor aFD, boolean preferIPv4Stack) | native static void | createStreamSocketImpl(FileDescriptor aFD, boolean preferIPv4Stack) | public void | disconnectDatagram(FileDescriptor aFD) | native static void | disconnectDatagramImpl(FileDescriptor aFD) | public InetAddress | getHostByAddr(byte[] addr) | native static InetAddress | getHostByAddrImpl(byte[] addr) | public InetAddress | getHostByName(String addr, boolean preferIPv6Addresses) | native static InetAddress | getHostByNameImpl(String addr, boolean preferIPv6Addresses) | public static OSNetworkSystem | getOSNetworkSystem() | public int | getSocketFlags() | native static int | getSocketFlagsImpl() | public InetAddress | getSocketLocalAddress(FileDescriptor aFD, boolean preferIPv6Addresses) | native static InetAddress | getSocketLocalAddressImpl(FileDescriptor aFD, boolean preferIPv6Addresses) | public int | getSocketLocalPort(FileDescriptor aFD, boolean preferIPv6Addresses) | native static int | getSocketLocalPortImpl(FileDescriptor aFD, boolean preferIPv6Addresses) | public Object | getSocketOption(FileDescriptor aFD, int opt) | native static Object | getSocketOptionImpl(FileDescriptor aFD, int opt) | public Channel | inheritedChannel() | native Channel | inheritedChannelImpl() | public boolean | isReachableByICMP(InetAddress dest, InetAddress source, int ttl, int timeout) | native int | isReachableByICMPImpl(InetAddress addr, InetAddress local, int ttl, int timeout) | public void | listenStreamSocket(FileDescriptor aFD, int backlog) | native static void | listenStreamSocketImpl(FileDescriptor aFD, int backlog) | public void | oneTimeInitialization(boolean jcl_supports_ipv6) | native void | oneTimeInitializationImpl(boolean jcl_supports_ipv6) | public int | peekDatagram(FileDescriptor aFD, InetAddress sender, int receiveTimeout) | native static int | peekDatagramImpl(FileDescriptor aFD, InetAddress sender, int receiveTimeout) | public int | read(FileDescriptor aFD, byte[] data, int offset, int count, int timeout) | public int | readDirect(FileDescriptor aFD, long address, int count, int timeout) | native static int | readSocketDirectImpl(FileDescriptor aFD, long address, int count, int timeout) | native static int | readSocketImpl(FileDescriptor aFD, byte[] data, int offset, int count, int timeout) | public int | receiveDatagram(FileDescriptor aFD, DatagramPacket packet, byte[] data, int offset, int length, int receiveTimeout, boolean peek) | public int | receiveDatagramDirect(FileDescriptor aFD, DatagramPacket packet, long address, int offset, int length, int receiveTimeout, boolean peek) | native static int | receiveDatagramDirectImpl(FileDescriptor aFD, DatagramPacket packet, long address, int offset, int length, int receiveTimeout, boolean peek) | native static int | receiveDatagramImpl(FileDescriptor aFD, DatagramPacket packet, byte[] data, int offset, int length, int receiveTimeout, boolean peek) | public int | receiveStream(FileDescriptor aFD, byte[] data, int offset, int count, int timeout) | native static int | receiveStreamImpl(FileDescriptor aFD, byte[] data, int offset, int count, int timeout) | public int | recvConnectedDatagram(FileDescriptor aFD, DatagramPacket packet, byte[] data, int offset, int length, int receiveTimeout, boolean peek) | public int | recvConnectedDatagramDirect(FileDescriptor aFD, DatagramPacket packet, long address, int offset, int length, int receiveTimeout, boolean peek) | native static int | recvConnectedDatagramDirectImpl(FileDescriptor aFD, DatagramPacket packet, long address, int offset, int length, int receiveTimeout, boolean peek) | native static int | recvConnectedDatagramImpl(FileDescriptor aFD, DatagramPacket packet, byte[] data, int offset, int length, int receiveTimeout, boolean peek) | public int[] | select(FileDescriptor[] readFDs, FileDescriptor[] writeFDs, long timeout) 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. | native static int | selectImpl(FileDescriptor[] readfd, FileDescriptor[] writefd, int cread, int cwirte, int[] flags, long timeout) | public int | sendConnectedDatagram(FileDescriptor fd, byte[] data, int offset, int length, boolean bindToDevice) | public int | sendConnectedDatagramDirect(FileDescriptor fd, long address, int offset, int length, boolean bindToDevice) | native static int | sendConnectedDatagramDirectImpl(FileDescriptor fd, long address, int offset, int length, boolean bindToDevice) | native static int | sendConnectedDatagramImpl(FileDescriptor fd, byte[] data, int offset, int length, boolean bindToDevice) | public int | sendDatagram(FileDescriptor fd, byte[] data, int offset, int length, int port, boolean bindToDevice, int trafficClass, InetAddress inetAddress) | public int | sendDatagram2(FileDescriptor fd, byte[] data, int offset, int length, int port, InetAddress inetAddress) | public int | sendDatagramDirect(FileDescriptor fd, long address, int offset, int length, int port, boolean bindToDevice, int trafficClass, InetAddress inetAddress) | native static int | sendDatagramDirectImpl(FileDescriptor fd, long address, int offset, int length, int port, boolean bindToDevice, int trafficClass, InetAddress inetAddress) | native static int | sendDatagramImpl(FileDescriptor fd, byte[] data, int offset, int length, int port, boolean bindToDevice, int trafficClass, InetAddress inetAddress) | native static int | sendDatagramImpl2(FileDescriptor fd, byte[] data, int offset, int length, int port, InetAddress inetAddress) | public int | sendStream(FileDescriptor fd, byte[] data, int offset, int count) | native static int | sendStreamImpl(FileDescriptor fd, byte[] data, int offset, int count) | public void | sendUrgentData(FileDescriptor fd, byte value) | native static void | sendUrgentDataImpl(FileDescriptor fd, byte value) | public void | setInetAddress(InetAddress sender, byte[] address) | native void | setInetAddressImpl(InetAddress sender, byte[] address) | public void | setNonBlocking(FileDescriptor aFD, boolean block) | native static void | setNonBlockingImpl(FileDescriptor aFD, boolean block) | public void | setSocketOption(FileDescriptor aFD, int opt, Object optVal) | native static void | setSocketOptionImpl(FileDescriptor aFD, int opt, Object optVal) | public void | shutdownInput(FileDescriptor descriptor) | public void | shutdownOutput(FileDescriptor descriptor) | native static void | socketBindImpl(FileDescriptor aFD, int port, InetAddress inetAddress) | native static boolean | socketBindImpl2(FileDescriptor aFD, int port, boolean bindToDevice, InetAddress inetAddress) | public void | socketClose(FileDescriptor aFD) | native static void | socketCloseImpl(FileDescriptor aFD) | public boolean | supportsUrgentData(FileDescriptor fd) | native static boolean | supportsUrgentDataImpl(FileDescriptor fd) | public int | write(FileDescriptor aFD, byte[] data, int offset, int count) | public int | writeDirect(FileDescriptor aFD, long address, int count) | native static int | writeSocketDirectImpl(FileDescriptor fd, long address, int count) | native static int | writeSocketImpl(FileDescriptor fd, byte[] data, int offset, int count) |
accept | public void accept(FileDescriptor fdServer, SocketImpl newSocket, FileDescriptor fdnewSocket, int timeout) throws IOException(Code) | | |
acceptSocketImpl | native static void acceptSocketImpl(FileDescriptor fdServer, SocketImpl newSocket, FileDescriptor fdnewSocket, int timeout) throws IOException(Code) | | |
acceptStreamSocket | public void acceptStreamSocket(FileDescriptor fdServer, SocketImpl newSocket, FileDescriptor fdnewSocket, int timeout) throws IOException(Code) | | |
acceptStreamSocketImpl | native static void acceptStreamSocketImpl(FileDescriptor fdServer, SocketImpl newSocket, FileDescriptor fdnewSocket, int timeout) throws IOException(Code) | | |
availableStreamImpl | native static int availableStreamImpl(FileDescriptor aFD) throws SocketException(Code) | | |
connectDatagramImpl2 | native static void connectDatagramImpl2(FileDescriptor aFD, int port, int trafficClass, InetAddress inetAddress) throws SocketException(Code) | | |
connectSocketImpl | native static int connectSocketImpl(FileDescriptor aFD, int trafficClass, InetAddress inetAddress, int port)(Code) | | |
connectStreamWithTimeoutSocket | public void connectStreamWithTimeoutSocket(FileDescriptor aFD, int aport, int timeout, int trafficClass, InetAddress inetAddress) throws IOException(Code) | | |
connectStreamWithTimeoutSocketImpl | native static void connectStreamWithTimeoutSocketImpl(FileDescriptor aFD, int aport, int timeout, int trafficClass, InetAddress inetAddress) throws IOException(Code) | | |
connectWithTimeout | public int connectWithTimeout(FileDescriptor aFD, int timeout, int trafficClass, InetAddress inetAddress, int port, int step, Long context) throws IOException(Code) | | |
connectWithTimeoutSocketImpl | native static int connectWithTimeoutSocketImpl(FileDescriptor aFD, int timeout, int trafficClass, InetAddress hostname, int port, int step, Long context)(Code) | | |
createDatagramSocket | public void createDatagramSocket(FileDescriptor fd, boolean preferIPv4Stack) throws SocketException(Code) | | |
createDatagramSocketImpl | native static void createDatagramSocketImpl(FileDescriptor aFD, boolean preferIPv4Stack) throws SocketException(Code) | | |
createMulticastSocket | public void createMulticastSocket(FileDescriptor aFD, boolean preferIPv4Stack) throws SocketException(Code) | | |
createMulticastSocketImpl | native static void createMulticastSocketImpl(FileDescriptor aFD, boolean preferIPv4Stack) throws SocketException(Code) | | |
createServerStreamSocket | public void createServerStreamSocket(FileDescriptor aFD, boolean preferIPv4Stack) throws SocketException(Code) | | |
createServerStreamSocketImpl | native static void createServerStreamSocketImpl(FileDescriptor aFD, boolean preferIPv4Stack) throws SocketException(Code) | | |
createSocket | public void createSocket(FileDescriptor fd, boolean preferIPv4Stack) throws IOException(Code) | | |
createSocketImpl | native static void createSocketImpl(FileDescriptor fd, boolean preferIPv4Stack)(Code) | | |
createStreamSocket | public void createStreamSocket(FileDescriptor aFD, boolean preferIPv4Stack) throws SocketException(Code) | | |
createStreamSocketImpl | native static void createStreamSocketImpl(FileDescriptor aFD, boolean preferIPv4Stack) throws SocketException(Code) | | |
disconnectDatagramImpl | native static void disconnectDatagramImpl(FileDescriptor aFD) throws SocketException(Code) | | |
getSocketFlags | public int getSocketFlags()(Code) | | |
getSocketFlagsImpl | native static int getSocketFlagsImpl()(Code) | | |
getSocketLocalAddress | public InetAddress getSocketLocalAddress(FileDescriptor aFD, boolean preferIPv6Addresses)(Code) | | |
getSocketLocalAddressImpl | native static InetAddress getSocketLocalAddressImpl(FileDescriptor aFD, boolean preferIPv6Addresses)(Code) | | |
getSocketLocalPort | public int getSocketLocalPort(FileDescriptor aFD, boolean preferIPv6Addresses)(Code) | | |
getSocketLocalPortImpl | native static int getSocketLocalPortImpl(FileDescriptor aFD, boolean preferIPv6Addresses)(Code) | | |
listenStreamSocket | public void listenStreamSocket(FileDescriptor aFD, int backlog) throws SocketException(Code) | | |
listenStreamSocketImpl | native static void listenStreamSocketImpl(FileDescriptor aFD, int backlog) throws SocketException(Code) | | |
oneTimeInitialization | public void oneTimeInitialization(boolean jcl_supports_ipv6)(Code) | | |
oneTimeInitializationImpl | native void oneTimeInitializationImpl(boolean jcl_supports_ipv6)(Code) | | |
read | public int read(FileDescriptor aFD, byte[] data, int offset, int count, int timeout) throws IOException(Code) | | |
readDirect | public int readDirect(FileDescriptor aFD, long address, int count, int timeout) throws IOException(Code) | | |
readSocketDirectImpl | native static int readSocketDirectImpl(FileDescriptor aFD, long address, int count, int timeout) throws IOException(Code) | | |
readSocketImpl | native static int readSocketImpl(FileDescriptor aFD, byte[] data, int offset, int count, int timeout) throws IOException(Code) | | |
receiveDatagram | public int receiveDatagram(FileDescriptor aFD, DatagramPacket packet, byte[] data, int offset, int length, int receiveTimeout, boolean peek) throws IOException(Code) | | |
receiveDatagramDirect | public int receiveDatagramDirect(FileDescriptor aFD, DatagramPacket packet, long address, int offset, int length, int receiveTimeout, boolean peek) throws IOException(Code) | | |
receiveDatagramDirectImpl | native static int receiveDatagramDirectImpl(FileDescriptor aFD, DatagramPacket packet, long address, int offset, int length, int receiveTimeout, boolean peek) throws IOException(Code) | | |
receiveDatagramImpl | native static int receiveDatagramImpl(FileDescriptor aFD, DatagramPacket packet, byte[] data, int offset, int length, int receiveTimeout, boolean peek) throws IOException(Code) | | |
receiveStream | public int receiveStream(FileDescriptor aFD, byte[] data, int offset, int count, int timeout) throws IOException(Code) | | |
receiveStreamImpl | native static int receiveStreamImpl(FileDescriptor aFD, byte[] data, int offset, int count, int timeout) throws IOException(Code) | | |
recvConnectedDatagram | public int recvConnectedDatagram(FileDescriptor aFD, DatagramPacket packet, byte[] data, int offset, int length, int receiveTimeout, boolean peek) throws IOException(Code) | | |
recvConnectedDatagramDirect | public int recvConnectedDatagramDirect(FileDescriptor aFD, DatagramPacket packet, long address, int offset, int length, int receiveTimeout, boolean peek) throws IOException(Code) | | |
recvConnectedDatagramDirectImpl | native static int recvConnectedDatagramDirectImpl(FileDescriptor aFD, DatagramPacket packet, long address, int offset, int length, int receiveTimeout, boolean peek) throws IOException(Code) | | |
recvConnectedDatagramImpl | native static int recvConnectedDatagramImpl(FileDescriptor aFD, DatagramPacket packet, byte[] data, int offset, int length, int receiveTimeout, boolean peek) throws IOException(Code) | | |
select | public int[] select(FileDescriptor[] readFDs, FileDescriptor[] writeFDs, long timeout) throws SocketException(Code) | | 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 Parameters: writeChannels - all channels interested in write and connect Parameters: timeout - timeout in millis throws: SocketException - |
selectImpl | native static int selectImpl(FileDescriptor[] readfd, FileDescriptor[] writefd, int cread, int cwirte, int[] flags, long timeout)(Code) | | |
sendConnectedDatagram | public int sendConnectedDatagram(FileDescriptor fd, byte[] data, int offset, int length, boolean bindToDevice) throws IOException(Code) | | |
sendConnectedDatagramDirect | public int sendConnectedDatagramDirect(FileDescriptor fd, long address, int offset, int length, boolean bindToDevice) throws IOException(Code) | | |
sendConnectedDatagramDirectImpl | native static int sendConnectedDatagramDirectImpl(FileDescriptor fd, long address, int offset, int length, boolean bindToDevice) throws IOException(Code) | | |
sendConnectedDatagramImpl | native static int sendConnectedDatagramImpl(FileDescriptor fd, byte[] data, int offset, int length, boolean bindToDevice) throws IOException(Code) | | |
sendDatagram | public int sendDatagram(FileDescriptor fd, byte[] data, int offset, int length, int port, boolean bindToDevice, int trafficClass, InetAddress inetAddress) throws IOException(Code) | | |
sendDatagram2 | public int sendDatagram2(FileDescriptor fd, byte[] data, int offset, int length, int port, InetAddress inetAddress) throws IOException(Code) | | |
sendDatagramDirect | public int sendDatagramDirect(FileDescriptor fd, long address, int offset, int length, int port, boolean bindToDevice, int trafficClass, InetAddress inetAddress) throws IOException(Code) | | |
sendDatagramDirectImpl | native static int sendDatagramDirectImpl(FileDescriptor fd, long address, int offset, int length, int port, boolean bindToDevice, int trafficClass, InetAddress inetAddress) throws IOException(Code) | | |
sendDatagramImpl | native static int sendDatagramImpl(FileDescriptor fd, byte[] data, int offset, int length, int port, boolean bindToDevice, int trafficClass, InetAddress inetAddress) throws IOException(Code) | | |
sendDatagramImpl2 | native static int sendDatagramImpl2(FileDescriptor fd, byte[] data, int offset, int length, int port, InetAddress inetAddress) throws IOException(Code) | | |
sendStream | public int sendStream(FileDescriptor fd, byte[] data, int offset, int count) throws IOException(Code) | | |
sendStreamImpl | native static int sendStreamImpl(FileDescriptor fd, byte[] data, int offset, int count) throws IOException(Code) | | |
sendUrgentData | public void sendUrgentData(FileDescriptor fd, byte value)(Code) | | |
sendUrgentDataImpl | native static void sendUrgentDataImpl(FileDescriptor fd, byte value)(Code) | | |
setInetAddressImpl | native void setInetAddressImpl(InetAddress sender, byte[] address)(Code) | | |
setNonBlocking | public void setNonBlocking(FileDescriptor aFD, boolean block) throws IOException(Code) | | |
setNonBlockingImpl | native static void setNonBlockingImpl(FileDescriptor aFD, boolean block)(Code) | | |
shutdownInput | public void shutdownInput(FileDescriptor descriptor) throws IOException(Code) | | |
shutdownOutput | public void shutdownOutput(FileDescriptor descriptor) throws IOException(Code) | | |
socketCloseImpl | native static void socketCloseImpl(FileDescriptor aFD)(Code) | | |
supportsUrgentData | public boolean supportsUrgentData(FileDescriptor fd)(Code) | | |
supportsUrgentDataImpl | native static boolean supportsUrgentDataImpl(FileDescriptor fd)(Code) | | |
write | public int write(FileDescriptor aFD, byte[] data, int offset, int count) throws IOException(Code) | | |
writeDirect | public int writeDirect(FileDescriptor aFD, long address, int count) throws IOException(Code) | | |
writeSocketDirectImpl | native static int writeSocketDirectImpl(FileDescriptor fd, long address, int count) throws IOException(Code) | | |
writeSocketImpl | native static int writeSocketImpl(FileDescriptor fd, byte[] data, int offset, int count) throws IOException(Code) | | |
|
|