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 }