Lines Matching refs:fd

37     private FileDescriptor fd;
53 return available_native(fd);
67 FileDescriptor myFd = fd;
85 FileDescriptor myFd = fd;
120 FileDescriptor myFd = fd;
134 FileDescriptor myFd = fd;
148 FileDescriptor myFd = fd;
160 private native int pending_native(FileDescriptor fd) throws IOException;
161 private native int available_native(FileDescriptor fd) throws IOException;
162 private native void close_native(FileDescriptor fd) throws IOException;
163 private native int read_native(FileDescriptor fd) throws IOException;
165 FileDescriptor fd) throws IOException;
167 FileDescriptor fd) throws IOException;
168 private native void write_native(int b, FileDescriptor fd)
170 private native void connectLocal(FileDescriptor fd, String name,
172 private native void bindLocal(FileDescriptor fd, String name, int namespace)
176 private native void listen_native(FileDescriptor fd, int backlog)
178 private native void shutdown(FileDescriptor fd, boolean shutdownInput);
180 FileDescriptor fd) throws IOException;
181 private native int getOption_native(FileDescriptor fd, int optID)
183 private native void setOption_native(FileDescriptor fd, int optID,
187 // (FileDescriptor fd) throws IOException;
192 * @param fd file descriptor of server socket
197 (FileDescriptor fd, LocalSocketImpl s) throws IOException;
211 * @param fd non-null; bound file descriptor
213 /*package*/ LocalSocketImpl(FileDescriptor fd) throws IOException
215 this.fd = fd;
219 return super.toString() + " fd:" + fd;
232 if (fd == null) {
233 fd = create_native(stream);
244 if (fd == null) return;
245 close_native(fd);
246 fd = null;
254 if (fd == null) {
258 connectLocal(fd, address.getName(), address.getNamespace().getId());
270 if (fd == null) {
274 bindLocal(fd, endpoint.getName(), endpoint.getNamespace().getId());
279 if (fd == null) {
283 listen_native(fd, backlog);
295 if (fd == null) {
299 s.fd = accept(fd, s);
310 if (fd == null) {
331 if (fd == null) {
362 if (fd == null) {
366 shutdown(fd, true);
376 if (fd == null) {
380 shutdown(fd, false);
385 return fd;
400 if (fd == null) {
408 int value = getOption_native(fd, optID);
431 if (fd == null) {
443 setOption_native(fd, optID, boolValue, intValue);
489 return getPeerCredentials_native(fd);
502 //return getSockName_native(fd);