Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for setOption (0.48 sec)

  1. src/test/java/jcifs/dcerpc/DcerpcBindingTest.java

            String endpoint = "\\pipe\\srvsvc";
            dcerpcBinding.setOption("endpoint", endpoint);
            assertEquals(endpoint, dcerpcBinding.getOption("endpoint"), "Should return the set endpoint.");
        }
    
        @Test
        void testGetOptionOtherKey() throws DcerpcException {
            dcerpcBinding.setOption("connect", "80");
            assertEquals("80", dcerpcBinding.getOption("connect"), "Should return the set option value.");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/dcerpc/DcerpcBinding.java

        UUID uuid = null;
        int major;
        int minor;
    
        DcerpcBinding(final String proto, final String server) {
            this.proto = proto;
            this.server = server;
        }
    
        void setOption(final String key, final Object val) throws DcerpcException {
            if (key.equals("endpoint")) {
                endpoint = val.toString();
                final String lep = endpoint.toLowerCase();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/dcerpc/DcerpcBinding.java

         */
        int getMajor() {
            return this.major;
        }
    
        /**
         * @return the minor
         */
        int getMinor() {
            return this.minor;
        }
    
        void setOption(final String key, final Object val) throws DcerpcException {
            if (key.equals("endpoint")) {
                this.endpoint = val.toString();
                final String lep = this.endpoint.toLowerCase(Locale.ENGLISH);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java

                        final String val = str.substring(mark, si).trim();
                        if (key == null) {
                            key = "endpoint";
                        }
                        binding.setOption(key, val);
                        key = null;
                    }
                    break;
                default:
                    si = arr.length;
                }
    
                si++;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/DcerpcHandle.java

                        mark = si + 1;
                        if (key == null) {
                            key = "endpoint";
                        }
                        if (binding != null) {
                            binding.setOption(key, val);
                        }
                        key = null;
                    }
                    break;
                default:
                    si = arr.length;
                }
    
                si++;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

            @DisplayName("Should generate correct pipe URL with address option")
            void testMakePipeUrl_WithAddressOption() throws Exception {
                lenient().when(mockDcerpcBinding.getOption("server")).thenReturn(null);
                when(mockDcerpcBinding.getOption("address")).thenReturn("192.168.1.1");
                DcerpcPipeHandle handle = createMockedDcerpcPipeHandle();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/dcerpc/DcerpcPipeHandle.java

            String params = "", server, address;
            server = (String) binding.getOption("server");
            if (server != null) {
                params += "&server=" + server;
            }
            address = (String) binding.getOption("address");
            if (server != null) {
                params += "&address=" + address;
            }
            if (params.length() > 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java

            String params = "";
            final String server = (String) binding.getOption("server");
            if (server != null) {
                params += "&server=" + server;
            }
            final String address = (String) binding.getOption("address");
            if (address != null) {
                params += "&address=" + address;
            }
            if (params.length() > 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top