Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for openPipe (0.04 sec)

  1. src/test/java/jcifs/smb/SmbNamedPipeTest.java

        }
    
        @Test
        @DisplayName("openPipe returns a handle bound to this pipe")
        void openPipeReturnsHandleBoundToPipe() throws Exception {
            // Arrange
            SmbNamedPipe pipe = new SmbNamedPipe("smb://server/IPC$/foo", SmbPipeResource.PIPE_TYPE_RDWR, ctx());
    
            // Act
            SmbPipeHandle handle = pipe.openPipe();
    
            // Assert: observable handle behavior without network I/O
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/SmbPipeResource.java

         *
         * @return the type of the pipe
         */
        int getPipeType();
    
        /**
         * Create a pipe handle
         *
         * @return pipe handle, needs to be closed when finished
         */
        SmbPipeHandle openPipe();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java

            super(tc, DcerpcHandle.parseBinding(url));
            this.pipe = new SmbNamedPipe(makePipeUrl(), pipeFlags, unshared, tc);
            this.handle = this.pipe.openPipe().unwrap(SmbPipeHandleInternal.class);
        }
    
        private String makePipeUrl() {
            final DcerpcBinding binding = getBinding();
            StringBuilder url =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbNamedPipe.java

        @Override
        public int getPipeType() {
            return this.pipeType;
        }
    
        /**
         * @return a handle for interacting with the pipe
         */
        @Override
        public SmbPipeHandle openPipe() {
            return new SmbPipeHandleImpl(this);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

        @BeforeEach
        void setUp() throws IOException {
            // Setup mock behavior with lenient stubbing to avoid UnnecessaryStubbingException
            lenient().when(mockSmbNamedPipe.openPipe()).thenReturn(mockSmbPipeHandle);
            lenient().when(mockSmbPipeHandle.unwrap(SmbPipeHandleInternal.class)).thenReturn(mockSmbPipeHandleInternal);
            lenient().when(mockSmbNamedPipe.getContext()).thenReturn(mockContext);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  6. cmd/os-instrumented.go

    	return RenameSys(src, dst)
    }
    
    // OpenFile captures time taken to call os.OpenFile
    func OpenFile(name string, flag int, perm os.FileMode) (f *os.File, err error) {
    	switch flag & writeMode {
    	case writeMode:
    		defer updateOSMetrics(osMetricOpenFileW, name)(err)
    	default:
    		defer updateOSMetrics(osMetricOpenFileR, name)(err)
    	}
    	return os.OpenFile(name, flag, perm)
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/http/NetworkExplorer.java

                    resp.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
                    resp.flushBuffer();
                    return;
                }
            }
    
            try (SmbFile file = openFile(pathInfo, server)) {
                if (file.isDirectory()) {
                    doDirectory(req, resp, file);
                } else {
                    doFile(req, resp, file);
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  8. cmd/erasure-healing-common_test.go

    					// and check if that disk
    					// appears in outDatedDisks.
    					tamperedIndex = index
    					filePath := pathJoin(erasureDisks[index].String(), bucket, object, fi.DataDir, "part.1")
    					f, err := os.OpenFile(filePath, os.O_WRONLY|os.O_SYNC, 0)
    					if err != nil {
    						t.Fatalf("Failed to open %s: %s\n", filePath, err)
    					}
    					f.WriteString("oops") // Will cause bitrot error
    					f.Close()
    					break
    				}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  9. cmd/xl-storage.go

    		}
    	}
    
    	return w, nil
    }
    
    func (s *xlStorage) openFileSync(filePath string, mode int, skipParent string) (f *os.File, err error) {
    	return s.openFile(filePath, mode|writeMode, skipParent)
    }
    
    func (s *xlStorage) openFile(filePath string, mode int, skipParent string) (f *os.File, err error) {
    	if skipParent == "" {
    		skipParent = s.drivePath
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Jun 13 11:33:47 UTC 2025
    - 91.7K bytes
    - Viewed (0)
  10. cmd/xl-storage_test.go

    		t.Fatal(err)
    	}
    
    	// 4) Streaming bitrot check on corrupted file
    	filePath := pathJoin(storage.String(), volName, fileName)
    	f, err := os.OpenFile(filePath, os.O_WRONLY|os.O_SYNC, 0o644)
    	if err != nil {
    		t.Fatal(err)
    	}
    	// Replace first 256 with 'a'.
    	if _, err := f.WriteString(strings.Repeat("a", 256)); err != nil {
    		t.Fatal(err)
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 66K bytes
    - Viewed (0)
Back to top