Code example for Socket

Methods: getLocalSocketAddressisConnected

0
			return false; 
		} 
		 
		 
		// try opening socket even if it's not null. 
		if (socket.isConnected() != true) {
			openSocket(); 
		} 
 
		// Is the socket open? 
		if (socket.isConnected() != true) {
			if (DEBUG) msg("After opening socket, it was not connected.");
			return false; 
		} 
 
		if (DEBUG) msg("Successfully opened socket.");
		return true; 
	} 
 
	/** 
Stop searching for code, let great code find you!  Add Codota to your java IDE