Home
last modified time | relevance | path

Searched refs:IoBridge (Results 1 – 12 of 12) sorted by relevance

/libcore/ojluni/src/main/java/java/net/
DPlainDatagramSocketImpl.java31 import libcore.io.IoBridge;
45 import static libcore.io.IoBridge.JAVA_IP_MULTICAST_TTL;
46 import static libcore.io.IoBridge.JAVA_MCAST_JOIN_GROUP;
47 import static libcore.io.IoBridge.JAVA_MCAST_LEAVE_GROUP;
105 IoBridge.bind(fd, laddr, lport); in bind0()
110 localPort = IoBridge.getLocalInetSocketAddress(fd).getPort(); in bind0()
126 IoBridge.sendto(fd, p.getData(), p.getOffset(), p.getLength(), 0, address, port); in send()
151 IoBridge.poll(fd, POLLIN | POLLERR, timeout); in doRecv()
154 IoBridge.recvfrom(false, fd, p.getData(), p.getOffset(), p.bufLength, flags, p, in doRecv()
159 IoBridge.setSocketOption(fd, JAVA_IP_MULTICAST_TTL, ttl); in setTimeToLive()
[all …]
DInet6AddressImpl.java34 import libcore.io.IoBridge;
221 fd = IoBridge.socket(AF_INET6, SOCK_STREAM, 0); in tcpEcho()
223 IoBridge.setSocketOption(fd, IoBridge.JAVA_IP_TTL, ttl); in tcpEcho()
226 IoBridge.bind(fd, sourceAddr, 0); in tcpEcho()
228 IoBridge.connect(fd, addr, 7 /* Echo-protocol port */, timeout); in tcpEcho()
237 IoBridge.closeAndSignalBlockedThreads(fd); in tcpEcho()
249 fd = IoBridge.socket(domain, SOCK_DGRAM, icmpProto); in icmpEcho()
252 IoBridge.setSocketOption(fd, IoBridge.JAVA_IP_TTL, ttl); in icmpEcho()
255 IoBridge.bind(fd, sourceAddr, 0); in icmpEcho()
264 IoBridge.setSocketOption(fd, SocketOptions.SO_TIMEOUT, sockTo); in icmpEcho()
[all …]
DPlainSocketImpl.java36 import libcore.io.IoBridge;
128 fd.setInt$(IoBridge.socket(AF_INET6, isStream ? SOCK_STREAM : SOCK_DGRAM, 0).getInt$()); in socketCreate()
133 IoBridge.setSocketOption(fd, SO_REUSEADDR, true); in socketCreate()
142 IoBridge.connect(fd, address, port, timeout); in socketConnect()
152 localport = IoBridge.getLocalInetSocketAddress(fd).getPort(); in socketConnect()
162 IoBridge.bind(fd, address, port); in socketBind()
168 localport = IoBridge.getLocalInetSocketAddress(fd).getPort(); in socketBind()
194 IoBridge.poll(fd, POLLIN | POLLERR, -1); in socketAccept()
196 IoBridge.poll(fd, POLLIN | POLLERR, timeout); in socketAccept()
218 s.localport = IoBridge.getLocalInetSocketAddress(s.fd).getPort(); in socketAccept()
[all …]
DAbstractPlainDatagramSocketImpl.java27 import libcore.io.IoBridge;
428 return IoBridge.available(fd); in dataAvailable()
/libcore/ojluni/src/main/java/java/io/
DFileInputStream.java37 import libcore.io.IoBridge;
160 fd = IoBridge.open(name, O_RDONLY); in FileInputStream()
323 return IoBridge.read(fd, b, off, len); in read()
434 IoBridge.closeAndSignalBlockedThreads(fd); in close()
DFileOutputStream.java40 import libcore.io.IoBridge;
236 this.fd = IoBridge.open(name, flags); in FileOutputStream()
401 IoBridge.write(fd, b, off, len); in write()
434 IoBridge.closeAndSignalBlockedThreads(fd); in close()
DRandomAccessFile.java35 import libcore.io.IoBridge;
289 fd = IoBridge.open(name, imode); in RandomAccessFile()
387 return IoBridge.read(fd, b, off, len); in readBytes()
546 IoBridge.write(fd, b, off, len); in writeBytes()
708 IoBridge.closeAndSignalBlockedThreads(fd); in close()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java57 public final class IoBridge { class
59 private IoBridge() { in IoBridge() method in IoBridge
122 IoBridge.connect(fd, inetAddress, port, 0); in connect()
192 } while (!IoBridge.isConnected(fd, inetAddress, port, timeoutMs, remainingTimeoutMs)); in connectErrno()
319 case IoBridge.JAVA_IP_MULTICAST_TTL: in getSocketOptionErrno()
323 case IoBridge.JAVA_IP_TTL: in getSocketOptionErrno()
405 case IoBridge.JAVA_IP_MULTICAST_TTL: in setSocketOptionErrno()
411 case IoBridge.JAVA_IP_TTL: in setSocketOptionErrno()
455 case IoBridge.JAVA_MCAST_JOIN_GROUP: in setSocketOptionErrno()
456 case IoBridge.JAVA_MCAST_LEAVE_GROUP: in setSocketOptionErrno()
DIoUtils.java158 IoBridge.closeAndSignalBlockedThreads(fd); in close()
319 fd = IoBridge.open(absolutePath, O_RDONLY); in FileReader()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DDatagramChannelMulticastTest.java40 import libcore.io.IoBridge;
791 IoBridge.poll(receivingChannel.socket().getFileDescriptor$(), POLLIN, 1000); in check_block_filtersAsExpected()
803 IoBridge.poll(receivingChannel.socket().getFileDescriptor$(), POLLIN, 1000); in check_block_filtersAsExpected()
815 IoBridge.poll(receivingChannel.socket().getFileDescriptor$(), POLLIN, 1000); in check_block_filtersAsExpected()
/libcore/
Dnon_openjdk_java_files.bp240 "luni/src/main/java/libcore/io/IoBridge.java",
/libcore/mmodules/core_platform_api/api/legacy_platform/
Dcurrent-api.txt944 public final class IoBridge {