Lines Matching refs:fd
55 public PlainDatagramSocketImpl(FileDescriptor fd, int localPort) {
56 this.fd = fd;
58 if (fd.valid()) {
64 fd = new FileDescriptor();
68 IoBridge.bind(fd, address, port);
72 localPort = IoBridge.getSocketLocalPort(fd);
84 IoBridge.closeSocket(fd);
91 this.fd = IoBridge.socket(false);
106 return IoBridge.getSocketOption(fd, option);
161 IoBridge.recvfrom(false, fd, pack.getData(), pack.getOffset(), pack.getLength(), flags, pack, isNativeConnected);
182 IoBridge.sendto(fd, packet.getData(), packet.getOffset(), packet.getLength(), 0, address, port);
186 IoBridge.setSocketOption(fd, option, value);
201 IoBridge.connect(fd, inetAddr, port); // Throws on failure.
216 Libcore.os.connect(fd, InetAddress.UNSPECIFIED, 0);