- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for pipeType (0.06 sec)
-
src/main/java/jcifs/smb1/smb1/SmbNamedPipe.java
* @param url the SMB URL of the named pipe * @param pipeType the type of the pipe * @throws MalformedURLException if the URL is malformed * @throws UnknownHostException if the host cannot be resolved */ public SmbNamedPipe(final String url, final int pipeType) throws MalformedURLException, UnknownHostException { super(url); this.pipeType = pipeType; type = TYPE_NAMED_PIPE; } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.5K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
} @Test void testGetPipe_MalformedURLException() { // Test getPipe(String url, int pipeType) with a malformed URL String malformedUrl = "invalid-pipe-url"; int pipeType = 1; CIFSException thrown = assertThrows(CIFSException.class, () -> { cifsContextWrapper.getPipe(malformedUrl, pipeType); });
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/TransactNamedPipeOutputStream.java
private final boolean dcePipe; TransactNamedPipeOutputStream(final SmbNamedPipe pipe) throws IOException { super(pipe, false, pipe.pipeType & 0xFFFF00FF | SmbFile.O_EXCL); this.pipe = pipe; this.dcePipe = (pipe.pipeType & SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT) == SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT; path = pipe.unc; } @Override public void close() throws IOException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 2.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbNamedPipe.java
private final int pipeType; /** * Open the Named Pipe resource specified by the url * parameter. The pipeType parameter should be at least one of * the <code>PIPE_TYPE</code> flags combined with the bitwise OR * operator <code>|</code>. See the examples listed above. * * @param url the SMB URL for the named pipe * @param pipeType the type of the pipe * @param unshared
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbNamedPipeTest.java
void getPipeTypeEchoesInput(int pipeType) throws Exception { // Arrange & Act SmbNamedPipe pipe = new SmbNamedPipe("smb://server/IPC$/foo", pipeType, ctx()); // Assert assertEquals(pipeType, pipe.getPipeType()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/TransactNamedPipeInputStream.java
Object lock; TransactNamedPipeInputStream(final SmbNamedPipe pipe) throws SmbException, MalformedURLException, UnknownHostException { super(pipe, pipe.pipeType & 0xFFFF00FF | SmbFile.O_EXCL); this.dcePipe = (pipe.pipeType & SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT) != SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT; lock = new Object(); } @Override public int read() throws IOException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/CIFSContextTest.java
int pipeType = 1; SmbPipeResource mockPipe = mock(SmbPipeResource.class); when(mockContext.getPipe(url, pipeType)).thenReturn(mockPipe); // When SmbPipeResource pipe = mockContext.getPipe(url, pipeType); // Then assertEquals(mockPipe, pipe); verify(mockContext).getPipe(url, pipeType); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/main/java/jcifs/CIFSContext.java
* Get a pipe resource * * @param url the URL of the SMB pipe resource * @param pipeType * the type of the pipe * @return the SMB pipe resource at the specified location * @throws CIFSException if the pipe resource cannot be accessed */ SmbPipeResource getPipe(String url, int pipeType) throws CIFSException; /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.9K bytes - Viewed (0) -
src/main/java/jcifs/context/CIFSContextWrapper.java
* {@inheritDoc} * * @see jcifs.CIFSContext#getPipe(java.lang.String, int) */ @Override public SmbPipeResource getPipe(final String url, final int pipeType) throws CIFSException { try { return new SmbNamedPipe(url, pipeType, this); } catch (final MalformedURLException e) { throw new CIFSException("Invalid URL " + url, e); } } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/context/BaseContextTest.java
// Test different pipe types int[] pipeTypes = { 0, 1, 2 }; for (int pipeType : pipeTypes) { // When SmbPipeResource pipe = context.getPipe("smb://server/IPC$/pipe", pipeType); // Then assertNotNull(pipe, "Should create pipe resource for type: " + pipeType); } } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 15.1K bytes - Viewed (0)