void setTargetServer(String targetServer) { if (targetServer.equalsIgnoreCase("127.0.0.1")) { //Replace with it's actual bindings, otherwise does not work for JCIFS authentication this.targetServer = getLocalhostAddressAsIPString(); } else { this.targetServer = targetServer; //will change the localhost to the actual address as well if (localhostStr.equalsIgnoreCase("127.0.0.1")) { //Bug in JDK , time to find alternate logic. localhostStr = getLocalHost(targetServer); } } }
void setTargetServer ( final String targetServer ) { if ( targetServer.equalsIgnoreCase ( "127.0.0.1" ) ) { //Replace with it's actual bindings, otherwise does not work for JCIFS authentication this.targetServer = getLocalhostAddressAsIPString (); } else { this.targetServer = targetServer; //will change the localhost to the actual address as well if ( localhostStr.equalsIgnoreCase ( "127.0.0.1" ) ) { //Bug in JDK , time to find alternate logic. localhostStr = getLocalHost ( targetServer ); } } }
void setTargetServer(String targetServer) { if (targetServer.equalsIgnoreCase("127.0.0.1")) { //Replace with it's actual bindings, otherwise does not work for JCIFS authentication this.targetServer = getLocalhostAddressAsIPString(); } else { this.targetServer = targetServer; //will change the localhost to the actual address as well if (localhostStr.equalsIgnoreCase("127.0.0.1")) { //Bug in JDK , time to find alternate logic. localhostStr = getLocalHost(targetServer); } } }
JIStringBinding ( final int port, final boolean hostname ) { String hostaddress = null; if ( !hostname ) { //single binding with our IP address hostaddress = JISession.getLocalhostAddressAsIPString (); } else { hostaddress = JISession.getLocalhostCanonicalAddressAsString (); } if ( port == -1 ) { this.networkAddress = hostaddress; } else { this.networkAddress = hostaddress + "[" + Integer.toString ( port ) + "]"; } this.length = 2 + this.networkAddress.length () * 2 + 2; this.towerId = 0x7; //TCP_IP }
JIStringBinding(int port,boolean hostname) { String hostaddress = null; if (!hostname) { //single binding with our IP address hostaddress = JISession.getLocalhostAddressAsIPString(); } else { hostaddress = JISession.getLocalhostCanonicalAddressAsString(); } if (port == -1) { networkAddress = hostaddress ; } else { networkAddress = hostaddress + "[" + Integer.toString(port) + "]"; } length = 2 + networkAddress.length() * 2 + 2; towerId = 0x7; //TCP_IP }
JIStringBinding(int port,boolean hostname) { String hostaddress = null; if (!hostname) { //single binding with our IP address hostaddress = JISession.getLocalhostAddressAsIPString(); } else { hostaddress = JISession.getLocalhostCanonicalAddressAsString(); } if (port == -1) { networkAddress = hostaddress ; } else { networkAddress = hostaddress + "[" + Integer.toString(port) + "]"; } length = 2 + networkAddress.length() * 2 + 2; towerId = 0x7; //TCP_IP }