Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/net/
DPlainDatagramSocketImpl.java25 import libcore.io.IoBridge;
60 IoBridge.bind(fd, address, port); in bind()
64 localPort = IoBridge.getSocketLocalPort(fd); in bind()
81 IoBridge.closeAndSignalBlockedThreads(fd); in close()
93 this.fd = IoBridge.socket(false); in create()
108 return IoBridge.getSocketOption(fd, option); in getOption()
113 return (Integer) getOption(IoBridge.JAVA_IP_MULTICAST_TTL); in getTimeToLive()
128 setOption(IoBridge.JAVA_MCAST_JOIN_GROUP, makeGroupReq(addr, null)); in join()
135 setOption(IoBridge.JAVA_MCAST_JOIN_GROUP, makeGroupReq(groupAddr, netInterface)); in joinGroup()
141 setOption(IoBridge.JAVA_MCAST_LEAVE_GROUP, makeGroupReq(addr, null)); in leave()
[all …]
DPlainSocketImpl.java28 import libcore.io.IoBridge;
107 newImpl.localport = IoBridge.getSocketLocalPort(newImpl.fd); in accept()
128 return IoBridge.available(fd); in available()
132 IoBridge.bind(fd, address, port); in bind()
136 this.localport = IoBridge.getSocketLocalPort(fd); in bind()
148 IoBridge.closeAndSignalBlockedThreads(fd); in close()
183 IoBridge.connect(fd, normalAddr, aPort, timeout); in connect()
198 this.fd = IoBridge.socket(streaming); in create()
242 return IoBridge.getSocketOption(fd, option); in getOption()
286 IoBridge.setSocketOption(fd, option, value); in setOption()
[all …]
DInetAddress.java37 import libcore.io.IoBridge;
755 FileDescriptor fd = IoBridge.socket(true); in isReachable()
759 IoBridge.bind(fd, source, 0); in isReachable()
761 IoBridge.connect(fd, destination, 7, timeout); in isReachable()
770 IoBridge.closeAndSignalBlockedThreads(fd); in isReachable()
DServerSocket.java24 import libcore.io.IoBridge;
119 localAddress = IoBridge.getSocketLocalAddress(impl.fd); in readBackBindState()
DDatagramSocket.java25 import libcore.io.IoBridge;
184 return IoBridge.getSocketLocalAddress(impl.fd); in getLocalAddress()
DSocket.java26 import libcore.io.IoBridge;
1001 this.localAddress = IoBridge.getSocketLocalAddress(impl.fd); in cacheLocalAddress()
/libcore/luni/src/main/java/java/io/
DFileInputStream.java25 import libcore.io.IoBridge;
76 this.fd = IoBridge.open(file.getPath(), O_RDONLY); in FileInputStream()
108 return IoBridge.available(fd); in available()
119 IoBridge.closeAndSignalBlockedThreads(fd); in close()
177 return IoBridge.read(fd, buffer, byteOffset, byteCount); in read()
DFileOutputStream.java23 import libcore.io.IoBridge;
87 this.fd = IoBridge.open(file.getPath(), mode); in FileOutputStream()
138 IoBridge.closeAndSignalBlockedThreads(fd); in close()
186 IoBridge.write(fd, buffer, byteOffset, byteCount); in write()
DRandomAccessFile.java27 import libcore.io.IoBridge;
117 this.fd = IoBridge.open(file.getPath(), flags); in RandomAccessFile()
165 IoBridge.closeAndSignalBlockedThreads(fd); in close()
286 return IoBridge.read(fd, buffer, byteOffset, byteCount); in read()
688 IoBridge.write(fd, buffer, byteOffset, byteCount); in write()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java50 public final class IoBridge { class
52 private IoBridge() { in IoBridge() method in IoBridge
110 IoBridge.connect(fd, inetAddress, port, 0); in connect()
171 } while (!IoBridge.isConnected(fd, inetAddress, port, timeoutMs, remainingTimeoutMs)); in connectErrno()
274 case IoBridge.JAVA_IP_MULTICAST_TTL: in getSocketOptionErrno()
343 case IoBridge.JAVA_IP_MULTICAST_TTL: in setSocketOptionErrno()
389 case IoBridge.JAVA_MCAST_JOIN_GROUP: in setSocketOptionErrno()
390 case IoBridge.JAVA_MCAST_LEAVE_GROUP: in setSocketOptionErrno()
398 case IoBridge.JAVA_MCAST_JOIN_SOURCE_GROUP: in setSocketOptionErrno()
399 case IoBridge.JAVA_MCAST_LEAVE_SOURCE_GROUP: in setSocketOptionErrno()
[all …]
DIoUtils.java209 fd = IoBridge.open(absolutePath, O_RDONLY); in FileReader()
/libcore/luni/src/main/java/java/nio/
DDatagramChannelImpl.java45 import libcore.io.IoBridge;
83 fd = IoBridge.socket(false); in DatagramChannelImpl()
153 IoBridge.connect(fd, remoteAddress, remotePort); in connect()
257 …received = IoBridge.recvfrom(false, fd, receivePacket.getData(), receivePacket.getOffset(), receiv… in receiveImpl()
278 IoBridge.recvfrom(false, fd, target, 0, receivePacket, isConnected()); in receiveDirectImpl()
306 sendCount = IoBridge.sendto(fd, source, 0, isa.getAddress(), isa.getPort()); in send()
377 readCount = IoBridge.recvfrom(false, fd, dst, 0, null, isConnected()); in readImpl()
438 result = IoBridge.sendto(fd, buf, 0, null, 0); in writeImpl()
449 IoBridge.closeAndSignalBlockedThreads(fd); in implCloseSelectableChannel()
DSocketChannelImpl.java48 import libcore.io.IoBridge;
105 fd = (connect ? IoBridge.socket(true) : new FileDescriptor()); in SocketChannelImpl()
199 IoBridge.connect(fd, normalAddr, port); in connect()
277 finished = IoBridge.isConnected(fd, inetAddress, port, 0, 0); // Return immediately. in finishConnect()
342 readCount = IoBridge.recvfrom(true, fd, dst, 0, null, false); in readImpl()
403 writeCount = IoBridge.sendto(fd, src, 0, null, 0); in writeImpl()
467 IoBridge.closeAndSignalBlockedThreads(fd); in implCloseSelectableChannel()
DSelectorImpl.java37 import libcore.io.IoBridge;
242 while (IoBridge.read(wakeupIn, buffer, 0, 1) > 0) { in processPollFds()